Merge pull request #103 from percona/bug-1593265

Bug-1593265 Fixed pt-archiver deletes wrong rows
This commit is contained in:
Carlos Salguero
2016-07-05 13:05:44 -03:00
committed by GitHub
9 changed files with 89 additions and 10 deletions

View File

@@ -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 {