MDEV-11491 binlog_encryption.rpl_checksum fails sporadically in buildbot

The race condition happened if mark_xid_done was considerably delayed,
and an extra Binlog_checkpoint event was written into the binary log
which was later indicated in an error message. Fixed by ensuring
that the event is written before the binary log is rotated to the one
which is used in the output.
This commit is contained in:
Elena Stepanova 2016-12-08 20:49:54 +02:00
parent 8e702bce66
commit 870d7589c6

View file

@ -87,6 +87,7 @@ create table t1 (a int);
# testing that binlog rotation preserves opt_binlog_checksum value
flush logs;
flush logs;
-- source include/wait_for_binlog_checkpoint.inc
flush logs;
sync_slave_with_master;