Merge pull request #410 from percona/PT-1630

PT-1630 Fixed wait for slaves on PXC
This commit is contained in:
Carlos Salguero
2019-07-27 00:29:20 -03:00
committed by GitHub

View File

@@ -11317,7 +11317,9 @@ sub main {
# MySQL 8+ replication is slower than 5.7 and the old wait_for_last_checksum alone
# was failing. The new wait_for_slaves checks that Read_Master_Log_Pos on slaves is
# greather or equal Position in the master
wait_for_slaves(master_dbh => $args{Cxn}->dbh(), master_slave => $ms, slaves => $slaves);
if (!$args{Cxn}->is_cluster_node()) {
wait_for_slaves(master_dbh => $args{Cxn}->dbh(), master_slave => $ms, slaves => $slaves);
}
wait_for_last_checksum(
tbl => $tbl,
repl_table => $repl_table,