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.
|
||||
|
Reference in New Issue
Block a user