mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-20 19:04:59 +00:00
added --skip-check-slave-lag
This commit is contained in:
@@ -184,9 +184,9 @@ $output = output(
|
||||
|
||||
chomp($output);
|
||||
|
||||
is(
|
||||
like(
|
||||
$output,
|
||||
'',
|
||||
qr/Checking lag on h=127.0.0.1,P=12346 -> 127.0.0.1:12346/,
|
||||
"Bug 1074179: ignore-tables-regex works with --replicate-check-only"
|
||||
);
|
||||
# #############################################################################
|
||||
@@ -206,6 +206,22 @@ like(
|
||||
"Bug 1016131: ptc should skip tables where all columns are excluded"
|
||||
);
|
||||
|
||||
# Test #12
|
||||
{
|
||||
$output = output(
|
||||
sub { pt_table_checksum::main(@args,
|
||||
'--skip-check-slave-lag', "h=127.0.0.1,P=".$sb->port_for('slave1'),
|
||||
),
|
||||
},
|
||||
);
|
||||
|
||||
my $skipping_str = "Skipping.*".$sb->port_for('slave1');
|
||||
like(
|
||||
$output,
|
||||
qr/$skipping_str/s,
|
||||
"--skip-check-slave-lag",
|
||||
);
|
||||
}
|
||||
# #############################################################################
|
||||
# Illegal division by zero at pt-table-checksum line 7950
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1075638
|
||||
@@ -319,6 +335,7 @@ diag(`/tmp/12346/stop >/dev/null`);
|
||||
diag(`/tmp/12346/start >/dev/null`);
|
||||
|
||||
|
||||
#
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user