Skip to content

Commit 4519ab4

Browse files
Fix flaky rpl.binlog_trx_meta_data test
Summary: Fix the race between `flush logs` and `purge logs` by syncing the slave with the master before purging. Reviewed By: yashtc Differential Revision: D10247529 fbshipit-source-id: e21c618
1 parent f06c79b commit 4519ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql-test/suite/rpl/include/binlog_trx_meta_data.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Init
22
connection master;
3+
flush logs;
34
sync_slave_with_master;
45
connection master;
5-
flush logs;
66
let $master_last_log = query_get_value("SHOW MASTER STATUS", "File", 1);
77
eval purge binary logs to '$master_last_log';
88
connection slave;

0 commit comments

Comments
 (0)