Fix compilation errors by using defines in mysql.h
This commit is contained in:
@ -125,7 +125,7 @@ int BinlogFilterSession::routeQuery(GWBUF* pPacket)
|
|||||||
|
|
||||||
switch (MYSQL_GET_COMMAND(data))
|
switch (MYSQL_GET_COMMAND(data))
|
||||||
{
|
{
|
||||||
case COM_REGISTER_SLAVE:
|
case MXS_COM_REGISTER_SLAVE:
|
||||||
// Connected client is registering as Slave Server
|
// Connected client is registering as Slave Server
|
||||||
m_serverid = gw_mysql_get_byte4(data + MYSQL_HEADER_LEN + 1);
|
m_serverid = gw_mysql_get_byte4(data + MYSQL_HEADER_LEN + 1);
|
||||||
MXS_INFO("Client is registering as "
|
MXS_INFO("Client is registering as "
|
||||||
@ -133,7 +133,7 @@ int BinlogFilterSession::routeQuery(GWBUF* pPacket)
|
|||||||
m_serverid);
|
m_serverid);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case COM_BINLOG_DUMP:
|
case MXS_COM_BINLOG_DUMP:
|
||||||
// Connected Slave server is waiting for binlog events
|
// Connected Slave server is waiting for binlog events
|
||||||
m_state = BINLOG_MODE;
|
m_state = BINLOG_MODE;
|
||||||
MXS_INFO("Slave server %" PRIu32 " is waiting for binlog events.",
|
MXS_INFO("Slave server %" PRIu32 " is waiting for binlog events.",
|
||||||
|
|||||||
Reference in New Issue
Block a user