diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index a0a8a99b..37ffca7f 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -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.