Skip to content

Commit

Permalink
Fix flaky rpl.binlog_trx_meta_data test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
abhinav04sharma authored and facebook-github-bot committed Oct 9, 2018
1 parent f06c79b commit 4519ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/include/binlog_trx_meta_data.inc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Init
connection master;
flush logs;
sync_slave_with_master;
connection master;
flush logs;
let $master_last_log = query_get_value("SHOW MASTER STATUS", "File", 1);
eval purge binary logs to '$master_last_log';
connection slave;
Expand Down

0 comments on commit 4519ab4

Please sign in to comment.