mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
Update NibbleIterator in tools.
This commit is contained in:
@@ -5495,7 +5495,7 @@ sub _find_best_index {
|
|||||||
}
|
}
|
||||||
@possible_indexes = sort {
|
@possible_indexes = sort {
|
||||||
my $cmp
|
my $cmp
|
||||||
= $indexes->{$b}->{cardinality} <=> $indexes->{$b}->{cardinality};
|
= $indexes->{$b}->{cardinality} <=> $indexes->{$a}->{cardinality};
|
||||||
if ( $cmp == 0 ) {
|
if ( $cmp == 0 ) {
|
||||||
$cmp = scalar @{$indexes->{$b}->{cols}}
|
$cmp = scalar @{$indexes->{$b}->{cols}}
|
||||||
<=> scalar @{$indexes->{$a}->{cols}};
|
<=> scalar @{$indexes->{$a}->{cols}};
|
||||||
|
@@ -6479,7 +6479,7 @@ sub _find_best_index {
|
|||||||
}
|
}
|
||||||
@possible_indexes = sort {
|
@possible_indexes = sort {
|
||||||
my $cmp
|
my $cmp
|
||||||
= $indexes->{$b}->{cardinality} <=> $indexes->{$b}->{cardinality};
|
= $indexes->{$b}->{cardinality} <=> $indexes->{$a}->{cardinality};
|
||||||
if ( $cmp == 0 ) {
|
if ( $cmp == 0 ) {
|
||||||
$cmp = scalar @{$indexes->{$b}->{cols}}
|
$cmp = scalar @{$indexes->{$b}->{cols}}
|
||||||
<=> scalar @{$indexes->{$a}->{cols}};
|
<=> scalar @{$indexes->{$a}->{cols}};
|
||||||
|
Reference in New Issue
Block a user