MXS-862: Move backend authentication from MySQLBackend to MySQLBackendAuth

The authentication for backend connections is now done in the
MySQLBackendAuth module. This is also the default authentication module
for backend connections created by MySQLBackend.
This commit is contained in:
Markus Makela
2016-09-28 10:20:39 +03:00
parent 35d9b35609
commit 6d057f8152
9 changed files with 671 additions and 416 deletions

View File

@ -397,6 +397,11 @@ dcb_free_all_memory(DCB *dcb)
dcb->authfunc.free(dcb);
dcb->data = NULL;
}
if (dcb->backend_data && dcb->authfunc.free && dcb->dcb_role == DCB_ROLE_BACKEND_HANDLER)
{
dcb->authfunc.free(dcb);
dcb->backend_data = NULL;
}
if (dcb->protoname)
{
MXS_FREE(dcb->protoname);