Fix added for binlog_checksum=NONE
Fix added for binlog_checksum=NONE
This commit is contained in:
@ -372,10 +372,9 @@ int query_len;
|
|||||||
else if (strcasecmp(word, "@master_binlog_checksum") == 0)
|
else if (strcasecmp(word, "@master_binlog_checksum") == 0)
|
||||||
{
|
{
|
||||||
word = strtok_r(NULL, sep, &brkb);
|
word = strtok_r(NULL, sep, &brkb);
|
||||||
if (word && (strcasecmp(word, "'none'") == 0))
|
if (word && (strcasecmp(word, "@@global.biglog_checksum'") == 0))
|
||||||
slave->nocrc = 1;
|
slave->nocrc = !router->master_chksum;
|
||||||
else
|
|
||||||
slave->nocrc = 0;
|
|
||||||
free(query_text);
|
free(query_text);
|
||||||
return blr_slave_replay(router, slave, router->saved_master.chksum1);
|
return blr_slave_replay(router, slave, router->saved_master.chksum1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user