summaryrefslogtreecommitdiff
path: root/mysql-test/suite/multi_source
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2012-12-17 12:49:11 +0100
committerunknown <knielsen@knielsen-hq.org>2012-12-17 12:49:11 +0100
commitcd0970c4808b80f33516e9e47e0bb62dae1e6bd5 (patch)
tree31b55b1341491021dbdcfc8e9060af59fb28435b /mysql-test/suite/multi_source
parent7760efad74140680b1eefaf2172b0fa26f7b1146 (diff)
downloadmariadb-git-cd0970c4808b80f33516e9e47e0bb62dae1e6bd5.tar.gz
MDEV-532: Fix some race conditions in test cases.
With MDEV-532, the binlog_checkpoint event is logged asynchronously from a binlog background thread. This causes some sporadic failures in some test cases whose output depends on order of events in binlog. Fix using an include file that waits until the binlog checkpoint event has been logged before proceeding with the test case.
Diffstat (limited to 'mysql-test/suite/multi_source')
-rw-r--r--mysql-test/suite/multi_source/multisource.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/suite/multi_source/multisource.test b/mysql-test/suite/multi_source/multisource.test
index e9d672a9ae3..7a9ee166ec2 100644
--- a/mysql-test/suite/multi_source/multisource.test
+++ b/mysql-test/suite/multi_source/multisource.test
@@ -169,6 +169,7 @@ select * from db2.t1;
--connection master1
flush logs;
+--source include/wait_for_binlog_checkpoint.inc
--save_master_pos
--connection slave
--sync_with_master 0, 'master1'