mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +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};
|
return $self->{one_nibble};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub chunk_size {
|
sub limit {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
return $self->{limit} + 1;
|
return $self->{limit};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub set_chunk_size {
|
sub set_chunk_size {
|
||||||
@@ -8594,7 +8594,7 @@ sub main {
|
|||||||
my $expl = explain_statement(
|
my $expl = explain_statement(
|
||||||
tbl => $tbl,
|
tbl => $tbl,
|
||||||
sth => $sth->{explain_upper_boundary},
|
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() || '')) {
|
if (lc($expl->{key} || '') ne lc($nibble_iter->nibble_index() || '')) {
|
||||||
my $msg
|
my $msg
|
||||||
@@ -8609,7 +8609,7 @@ sub main {
|
|||||||
. $sth->{upper_boundary}->{Statement}
|
. $sth->{upper_boundary}->{Statement}
|
||||||
. " with values "
|
. " with values "
|
||||||
. join(", ", map { defined $_ ? $_ : "NULL" }
|
. join(", ", map { defined $_ ? $_ : "NULL" }
|
||||||
(@{$boundary->{lower}}, $nibble_iter->chunk_size()))
|
(@{$boundary->{lower}}, $nibble_iter->limit()))
|
||||||
. "\n";
|
. "\n";
|
||||||
die $msg;
|
die $msg;
|
||||||
}
|
}
|
||||||
|
@@ -6055,9 +6055,9 @@ sub one_nibble {
|
|||||||
return $self->{one_nibble};
|
return $self->{one_nibble};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub chunk_size {
|
sub limit {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
return $self->{limit} + 1;
|
return $self->{limit};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub set_chunk_size {
|
sub set_chunk_size {
|
||||||
@@ -9533,7 +9533,7 @@ sub main {
|
|||||||
my $expl = explain_statement(
|
my $expl = explain_statement(
|
||||||
tbl => $tbl,
|
tbl => $tbl,
|
||||||
sth => $sth->{explain_upper_boundary},
|
sth => $sth->{explain_upper_boundary},
|
||||||
vals => [ @{$boundary->{lower}}, $nibble_iter->chunk_size() ],
|
vals => [ @{$boundary->{lower}}, $nibble_iter->limit() ],
|
||||||
);
|
);
|
||||||
if ( lc($expl->{key} || '')
|
if ( lc($expl->{key} || '')
|
||||||
ne lc($nibble_iter->nibble_index() || '') ) {
|
ne lc($nibble_iter->nibble_index() || '') ) {
|
||||||
|
@@ -405,9 +405,9 @@ sub one_nibble {
|
|||||||
return $self->{one_nibble};
|
return $self->{one_nibble};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub chunk_size {
|
sub limit {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
return $self->{limit} + 1;
|
return $self->{limit};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub set_chunk_size {
|
sub set_chunk_size {
|
||||||
|
@@ -206,9 +206,9 @@ ok(
|
|||||||
);
|
);
|
||||||
|
|
||||||
is(
|
is(
|
||||||
$ni->chunk_size(),
|
$ni->limit(),
|
||||||
5,
|
4,
|
||||||
"chunk_size()"
|
"limit()"
|
||||||
);
|
);
|
||||||
|
|
||||||
# ############################################################################
|
# ############################################################################
|
||||||
|
Reference in New Issue
Block a user