mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-03-01 02:00:46 +08:00
Merged lp:~percona-toolkit-dev/percona-toolkit/pt-osc-wait-for-slaves
This commit is contained in:
@@ -5546,6 +5546,16 @@ sub main {
|
||||
}
|
||||
};
|
||||
|
||||
for my $slave (@$slaves) {
|
||||
PTDEBUG && _d('Waiting until', $slave->name(),
|
||||
'replicates the table');
|
||||
sleep 0.5 while ! $tp->check_table(
|
||||
dbh => $slave->dbh(),
|
||||
db => $new_tbl->{db},
|
||||
tbl => $new_tbl->{tbl}
|
||||
);
|
||||
}
|
||||
|
||||
# #####################################################################
|
||||
# Step 2: Alter the new, empty table. This should be very quick,
|
||||
# or die if the user specified a bad alter statement.
|
||||
|
||||
Reference in New Issue
Block a user