diff options
Diffstat (limited to 'mysql-test/t/rpl_log.test')
-rw-r--r-- | mysql-test/t/rpl_log.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mysql-test/t/rpl_log.test b/mysql-test/t/rpl_log.test index dff57a77a45..faca1a6c339 100644 --- a/mysql-test/t/rpl_log.test +++ b/mysql-test/t/rpl_log.test @@ -1,7 +1,17 @@ source include/master-slave.inc; -#clean up slave binlogs +# Clean up old slave's binlogs. +# The slave is started with --log-slave-updates +# and this test does SHOW BINLOG EVENTS on the slave's +# binlog. But previous tests can influence the current test's +# binlog (e.g. a temporary table in the previous test has not +# been explicitly deleted, and at the beginning of the current +# test the slave immediately writes DROP TEMPORARY TABLE this_old_table). +# We wait for the slave to have written all he wants to the binlog +# (otherwise RESET MASTER may come too early). +save_master_pos; connection slave; +sync_with_master; stop slave; reset master; reset slave; |