PT-87 Added --skip-check-slave-lag to pt-table-checksum

This commit is contained in:
Carlos Salguero
2017-04-12 17:07:06 -03:00
parent 2fe4afc9cf
commit 3568cad229
6 changed files with 35 additions and 17 deletions

View File

@@ -11934,6 +11934,13 @@ ignored.
You can change the list of hosts while OSC is executing:
if you change the contents of the DSN table, OSC will pick it up very soon.
=item --skip-check-slave-lag
type: DSN; repeatable: yes
DSN to skip when checking slave lag. It can be used multiple times.
Example: --skip-check-slave-lag h=127.1,P=12345 --skip-check-slave-lag h=127.1,P=12346
=item --slave-user
type: string

View File

@@ -9707,14 +9707,6 @@ sub main {
}
}
if ( $slave_lag_cxns && scalar @$slave_lag_cxns ) {
for my $slave (@$slave_lag_cxns) {
printf("Checking lag on %s -> %s:%s\n", $slave->name(), $slave->{dsn}->{h}, $slave->{dsn}->{P});
}
} else {
print "Not checking slave lag because no slaves were found or they were set to be skipped\n";
}
# #####################################################################
# Possibly check replication slaves and exit.
# #####################################################################