mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 21:37:56 +00:00
corrected index choosing bug in NibbleHandler
This commit is contained in:
@@ -6556,7 +6556,8 @@ sub _find_best_index {
|
||||
push @possible_indexes, $want_index;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
if (!$best_index) {
|
||||
PTDEBUG && _d('Auto-selecting best index');
|
||||
foreach my $index ( $tp->sort_indexes($tbl_struct) ) {
|
||||
if ( $index eq 'PRIMARY' || $indexes->{$index}->{is_unique} ) {
|
||||
|
Reference in New Issue
Block a user