MXS-1075: MariaDB 10 Slave registration with GTID

New SQL commands are handled for MariaDB 10 slave registration with GTID
This commit is contained in:
MassimilianoPinto
2017-03-06 08:56:26 +01:00
parent 1061344de9
commit 4e8bf1106b
5 changed files with 88 additions and 10 deletions

View File

@ -1041,6 +1041,7 @@ newSession(MXS_ROUTER *instance, MXS_SESSION *session)
slave->heartbeat = 0;
slave->lastEventReceived = 0;
slave->encryption_ctx = NULL;
slave->mariadb_gtid = NULL;
/**
* Add this session to the list of active sessions.
@ -1124,6 +1125,10 @@ static void freeSession(MXS_ROUTER* router_instance,
{
MXS_FREE(slave->encryption_ctx);
}
if (slave->mariadb_gtid)
{
MXS_FREE(slave->mariadb_gtid);
}
MXS_FREE(slave);
}