mariadb10 compatibility test without GTID
First implementation of mariadb10 compatibility test without GTID State machine to be modified for mysql5.6/mariadb10 compatibility router options for mariadb10 slave registration still missing
This commit is contained in:
@ -395,7 +395,7 @@ static char *blrs_states[] = { "Created", "Unregistered", "Registered",
|
||||
#define ANONYMOUS_GTID_EVENT 0x22
|
||||
#define PREVIOUS_GTIDS_EVENT 0x23
|
||||
|
||||
#define MAX_EVENT_TYPE 0x23
|
||||
#define MAX_EVENT_TYPE 0xa3
|
||||
|
||||
/**
|
||||
* Binlog event flags
|
||||
|
@ -448,7 +448,8 @@ char query[128];
|
||||
GWBUF_CONSUME_ALL(router->saved_master.chksum2);
|
||||
router->saved_master.chksum2 = buf;
|
||||
blr_cache_response(router, "chksum2", buf);
|
||||
buf = blr_make_query("SELECT @@GLOBAL.GTID_MODE");
|
||||
//buf = blr_make_query("SELECT @@GLOBAL.GTID_MODE");
|
||||
buf = blr_make_query("SET @mariadb_slave_capability=4);
|
||||
router->master_state = BLRM_GTIDMODE;
|
||||
router->master->func.write(router->master, buf);
|
||||
break;
|
||||
|
@ -369,7 +369,8 @@ int query_len;
|
||||
else if (strcasecmp(word, "@mariadb_slave_capability") == 0)
|
||||
{
|
||||
free(query_text);
|
||||
return blr_slave_send_ok(router, slave);
|
||||
return blr_slave_replay(router, slave, router->saved_master.gtid_mode);
|
||||
//return blr_slave_send_ok(router, slave);
|
||||
}
|
||||
else if (strcasecmp(word, "@master_binlog_checksum") == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user