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:
Sveta Smirnova
2024-06-06 16:19:56 +03:00
parent aaa258d209
commit e8a09c62a3

View File

@@ -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.