Always reply to SET @mariadb_slave_capability

Always reply to SET @mariadb_slave_capability, with saved master reply
for mariadb10 master or with OK otherwise
This commit is contained in:
MassimilianoPinto
2015-05-07 16:10:35 +02:00
parent 3f2876bde3
commit 2c2a03a6f6

View File

@ -368,9 +368,11 @@ int query_len;
}
else if (strcasecmp(word, "@mariadb_slave_capability") == 0)
{
free(query_text);
if (router->mariadb10_compat) {
free(query_text);
return blr_slave_replay(router, slave, router->saved_master.mariadb10);
} else {
return blr_slave_send_ok(router, slave);
}
}
else if (strcasecmp(word, "@master_binlog_checksum") == 0)