mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Make CompareResults.t stable--yet another case of not waiting for replication.
This commit is contained in:
@@ -642,6 +642,7 @@ $dbh1->do('update test.t3 set f=0 where 1');
|
|||||||
$dbh1->do('SET SQL_LOG_BIN=0');
|
$dbh1->do('SET SQL_LOG_BIN=0');
|
||||||
$dbh1->do('insert into test.t3 values (2.0),(3.0)');
|
$dbh1->do('insert into test.t3 values (2.0),(3.0)');
|
||||||
$dbh1->do('SET SQL_LOG_BIN=1');
|
$dbh1->do('SET SQL_LOG_BIN=1');
|
||||||
|
$sb->wait_for_slaves();
|
||||||
|
|
||||||
my $left_n_rows = $dbh1->selectcol_arrayref('select count(*) from test.t3')->[0];
|
my $left_n_rows = $dbh1->selectcol_arrayref('select count(*) from test.t3')->[0];
|
||||||
my $right_n_rows = $dbh2->selectcol_arrayref('select count(*) from test.t3')->[0];
|
my $right_n_rows = $dbh2->selectcol_arrayref('select count(*) from test.t3')->[0];
|
||||||
|
Reference in New Issue
Block a user