mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 23:45:44 +00:00
Merge pull request #103 from percona/bug-1593265
Bug-1593265 Fixed pt-archiver deletes wrong rows
This commit is contained in:
@@ -3201,7 +3201,7 @@ sub generate_del_stmt {
|
||||
my $index = $tp->find_best_index($tbl, $args{index});
|
||||
die "Cannot find an ascendable index in table" unless $index;
|
||||
|
||||
if ( $index ) {
|
||||
if ( $index && $tbl->{keys}->{$index}->{is_unique}) {
|
||||
@del_cols = @{$tbl->{keys}->{$index}->{cols}};
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user