Skip to content

Commit

Permalink
Fix binlog_trx_meta_data.test
Browse files Browse the repository at this point in the history
Summary:
This test used to fail sometimes during purging binlogs because the
binlog to be purged was still being read by the slave. Added a slave sync to
avoid this.

Reviewed By: yashtc

Differential Revision: D8249786

fbshipit-source-id: a59ce8b
  • Loading branch information
abhinav04sharma authored and facebook-github-bot committed Jun 4, 2018
1 parent 861d278 commit e392a18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mysql-test/suite/rpl/include/binlog_trx_meta_data.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Init
connection master;
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';
Expand Down

0 comments on commit e392a18

Please sign in to comment.