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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user