From a5ad8d15f6370b3929afbf0c2939192db52889a9 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 31 Jan 2013 11:29:58 +0100 Subject: [PATCH] MDEV-4121: binlog.binlog_row_binlog sporadic test failure Add a wait for binlog checkpoint to avoid thread scheduling giving different binlog order at random. --- mysql-test/extra/binlog_tests/binlog.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql-test/extra/binlog_tests/binlog.test b/mysql-test/extra/binlog_tests/binlog.test index 5b57eab1005..a74426bdd45 100644 --- a/mysql-test/extra/binlog_tests/binlog.test +++ b/mysql-test/extra/binlog_tests/binlog.test @@ -40,6 +40,9 @@ while ($1) } --enable_query_log commit; +# Make sure binlog checkpoint is logged before DROP TABLE to avoid random +# result difference. +--source include/wait_for_binlog_checkpoint.inc drop table t1; --source include/show_binlog_events.inc --let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1)