mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
Fix bug: a typo in NibbleIterator::_find_best_index().
This commit is contained in:
@@ -554,7 +554,7 @@ sub _find_best_index {
|
|||||||
@possible_indexes = sort {
|
@possible_indexes = sort {
|
||||||
# Prefer the index with the highest cardinality.
|
# Prefer the index with the highest cardinality.
|
||||||
my $cmp
|
my $cmp
|
||||||
= $indexes->{$b}->{cardinality} <=> $indexes->{$b}->{cardinality};
|
= $indexes->{$b}->{cardinality} <=> $indexes->{$a}->{cardinality};
|
||||||
if ( $cmp == 0 ) {
|
if ( $cmp == 0 ) {
|
||||||
# Indexes have the same cardinality; prefer the one with
|
# Indexes have the same cardinality; prefer the one with
|
||||||
# more columns.
|
# more columns.
|
||||||
|
@@ -38,9 +38,6 @@ my $dbh = $sb->get_dbh_for('master');
|
|||||||
if ( !$dbh ) {
|
if ( !$dbh ) {
|
||||||
plan skip_all => 'Cannot connect to sandbox master';
|
plan skip_all => 'Cannot connect to sandbox master';
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
plan tests => 54;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $q = new Quoter();
|
my $q = new Quoter();
|
||||||
my $tp = new TableParser(Quoter=>$q);
|
my $tp = new TableParser(Quoter=>$q);
|
||||||
@@ -866,4 +863,4 @@ like(
|
|||||||
);
|
);
|
||||||
$sb->wipe_clean($dbh);
|
$sb->wipe_clean($dbh);
|
||||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||||
exit;
|
done_testing;
|
||||||
|
Reference in New Issue
Block a user