Fix bug 968596: rename NibbleIterator::chunk_size() to limit() and update ptc and pt-osc.

This commit is contained in:
Daniel Nichter
2013-02-28 19:26:04 -07:00
parent 15341b4e0e
commit 5a34a0817e
4 changed files with 12 additions and 12 deletions

View File

@@ -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;
}

View File

@@ -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() || '') ) {

View File

@@ -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 {

View File

@@ -206,9 +206,9 @@ ok(
);
is(
$ni->chunk_size(),
5,
"chunk_size()"
$ni->limit(),
4,
"limit()"
);
# ############################################################################