mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
Fixed wait_for_slaves in t/pt-table-sync/master_master.t, so it instructs master1 to wait when master2 is up-to-date
This commit is contained in:
@@ -35,6 +35,10 @@ my $master2_dbh = $sb->get_dbh_for('master2');
|
||||
$master1_dbh->do("CREATE DATABASE test");
|
||||
$sb->load_file("master1", "t/pt-table-sync/samples/before.sql");
|
||||
$sb->wait_for_slaves();
|
||||
$sb->wait_for_slaves(
|
||||
master => 'master1',
|
||||
slave => 'master2',
|
||||
);
|
||||
|
||||
# Make master2 different from master1. So master2 has the _correct_ data,
|
||||
# and the sync below will make master1 have that data too.
|
||||
|
Reference in New Issue
Block a user