mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Reset nibble_time for each chunk.
This commit is contained in:
@@ -7009,6 +7009,11 @@ sub main {
|
|||||||
# Count every chunk, even if it's ultimately skipped, etc.
|
# Count every chunk, even if it's ultimately skipped, etc.
|
||||||
$tbl->{checksum_results}->{n_chunks}++;
|
$tbl->{checksum_results}->{n_chunks}++;
|
||||||
|
|
||||||
|
# Reset the nibble_time because this nibble hasn't been
|
||||||
|
# executed yet. If nibble_time is undef, then it's marked
|
||||||
|
# as skipped in after_nibble.
|
||||||
|
$tbl->{nibble_time} = undef;
|
||||||
|
|
||||||
# --explain level 2: print chunk,lower boundary values,upper
|
# --explain level 2: print chunk,lower boundary values,upper
|
||||||
# boundary values.
|
# boundary values.
|
||||||
if ( $o->get('explain') > 1 ) {
|
if ( $o->get('explain') > 1 ) {
|
||||||
|
@@ -259,7 +259,7 @@ is(
|
|||||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1011738
|
# https://bugs.launchpad.net/percona-toolkit/+bug/1011738
|
||||||
$output = output(
|
$output = output(
|
||||||
sub { pt_table_checksum::main(@args,
|
sub { pt_table_checksum::main(@args,
|
||||||
qw(-t osc.t --chunk-size 5 --chunk-size-limit 1)) },
|
qw(-t osc.t --chunk-size 6 --chunk-size-limit 1)) },
|
||||||
stderr => 1,
|
stderr => 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -273,7 +273,7 @@ is(
|
|||||||
PerconaTest::count_checksum_results($output, 'skipped'),
|
PerconaTest::count_checksum_results($output, 'skipped'),
|
||||||
1,
|
1,
|
||||||
"Skipped 1 chunk (bug 1011738)"
|
"Skipped 1 chunk (bug 1011738)"
|
||||||
);
|
) or diag($output);
|
||||||
|
|
||||||
# ############################################################################
|
# ############################################################################
|
||||||
# Check slave table row est. if doing doing 1=1 on master table.
|
# Check slave table row est. if doing doing 1=1 on master table.
|
||||||
|
Reference in New Issue
Block a user