Combined some conditionals in blr_slave.
This commit is contained in:
@ -376,12 +376,12 @@ int query_len;
|
|||||||
word = strtok_r(NULL, sep, &brkb);
|
word = strtok_r(NULL, sep, &brkb);
|
||||||
if (word && (strcasecmp(word, "'none'") == 0))
|
if (word && (strcasecmp(word, "'none'") == 0))
|
||||||
slave->nocrc = 1;
|
slave->nocrc = 1;
|
||||||
|
else if (word && (strcasecmp(word, "@@global.biglog_checksum'") == 0))
|
||||||
|
slave->nocrc = !router->master_chksum;
|
||||||
else
|
else
|
||||||
slave->nocrc = 0;
|
slave->nocrc = 0;
|
||||||
|
|
||||||
if (word && (strcasecmp(word, "@@global.biglog_checksum'") == 0))
|
|
||||||
slave->nocrc = !router->master_chksum;
|
|
||||||
|
|
||||||
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