PT-1637 Added --fail-on stopped-replication param to table checksum

This commit is contained in:
Carlos Salguero
2018-11-08 14:18:18 -03:00
parent eb6beefd90
commit c5ec28fcd6
6 changed files with 163 additions and 8 deletions

View File

@@ -91,6 +91,9 @@ sub wait {
. " seconds on $dsn_name. Waiting.\n";
}
else {
if ($self->{fail_on_stopped_replication}) {
die 'replication is stopped';
}
print STDERR "Replica $dsn_name is stopped. Waiting.\n";
}
return;
@@ -103,6 +106,9 @@ sub wait {
$pr_first_report = sub {
my $dsn_name = $worst->{cxn}->name();
if ( !defined $worst->{lag} ) {
if ($self->{fail_on_stopped_replication}) {
die 'replication is stopped';
}
print STDERR "Replica $dsn_name is stopped. Waiting.\n";
}
return;