mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
Fix bug 968596: rename NibbleIterator::chunk_size() to limit() and update ptc and pt-osc.
This commit is contained in:
@@ -5279,9 +5279,9 @@ sub one_nibble {
|
||||
return $self->{one_nibble};
|
||||
}
|
||||
|
||||
sub chunk_size {
|
||||
sub limit {
|
||||
my ($self) = @_;
|
||||
return $self->{limit} + 1;
|
||||
return $self->{limit};
|
||||
}
|
||||
|
||||
sub set_chunk_size {
|
||||
@@ -8594,7 +8594,7 @@ sub main {
|
||||
my $expl = explain_statement(
|
||||
tbl => $tbl,
|
||||
sth => $sth->{explain_upper_boundary},
|
||||
vals => [ @{$boundary->{lower}}, $nibble_iter->chunk_size() ],
|
||||
vals => [ @{$boundary->{lower}}, $nibble_iter->limit() ],
|
||||
);
|
||||
if (lc($expl->{key} || '') ne lc($nibble_iter->nibble_index() || '')) {
|
||||
my $msg
|
||||
@@ -8609,7 +8609,7 @@ sub main {
|
||||
. $sth->{upper_boundary}->{Statement}
|
||||
. " with values "
|
||||
. join(", ", map { defined $_ ? $_ : "NULL" }
|
||||
(@{$boundary->{lower}}, $nibble_iter->chunk_size()))
|
||||
(@{$boundary->{lower}}, $nibble_iter->limit()))
|
||||
. "\n";
|
||||
die $msg;
|
||||
}
|
||||
|
@@ -6055,9 +6055,9 @@ sub one_nibble {
|
||||
return $self->{one_nibble};
|
||||
}
|
||||
|
||||
sub chunk_size {
|
||||
sub limit {
|
||||
my ($self) = @_;
|
||||
return $self->{limit} + 1;
|
||||
return $self->{limit};
|
||||
}
|
||||
|
||||
sub set_chunk_size {
|
||||
@@ -9533,7 +9533,7 @@ sub main {
|
||||
my $expl = explain_statement(
|
||||
tbl => $tbl,
|
||||
sth => $sth->{explain_upper_boundary},
|
||||
vals => [ @{$boundary->{lower}}, $nibble_iter->chunk_size() ],
|
||||
vals => [ @{$boundary->{lower}}, $nibble_iter->limit() ],
|
||||
);
|
||||
if ( lc($expl->{key} || '')
|
||||
ne lc($nibble_iter->nibble_index() || '') ) {
|
||||
|
@@ -405,9 +405,9 @@ sub one_nibble {
|
||||
return $self->{one_nibble};
|
||||
}
|
||||
|
||||
sub chunk_size {
|
||||
sub limit {
|
||||
my ($self) = @_;
|
||||
return $self->{limit} + 1;
|
||||
return $self->{limit};
|
||||
}
|
||||
|
||||
sub set_chunk_size {
|
||||
|
@@ -206,9 +206,9 @@ ok(
|
||||
);
|
||||
|
||||
is(
|
||||
$ni->chunk_size(),
|
||||
5,
|
||||
"chunk_size()"
|
||||
$ni->limit(),
|
||||
4,
|
||||
"limit()"
|
||||
);
|
||||
|
||||
# ############################################################################
|
||||
|
Reference in New Issue
Block a user