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