summaryrefslogtreecommitdiff
path: root/mysql-test/suite/binlog/t/binlog_truncate_myisam.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/binlog/t/binlog_truncate_myisam.test')
-rw-r--r--mysql-test/suite/binlog/t/binlog_truncate_myisam.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/suite/binlog/t/binlog_truncate_myisam.test b/mysql-test/suite/binlog/t/binlog_truncate_myisam.test
index 994647ab78a..e0e4673e876 100644
--- a/mysql-test/suite/binlog/t/binlog_truncate_myisam.test
+++ b/mysql-test/suite/binlog/t/binlog_truncate_myisam.test
@@ -1,4 +1,11 @@
source include/have_log_bin.inc;
+# It is necessary to reset the master since otherwise the binlog test
+# might show the wrong binary log. The default for SHOW BINLOG EVENTS
+# is to show the first binary log, not the current one (which is
+# actually a better idea).
+
+RESET MASTER;
+
let $engine = MyISAM;
source extra/binlog_tests/binlog_truncate.test;