PT-157 Specifying the index to use for pt-archiver ignores --primary-key-only

This commit is contained in:
Carlos Salguero
2018-11-27 12:25:47 -03:00
parent d6b8863a3a
commit 4230f411e4
4 changed files with 65 additions and 18 deletions

View File

@@ -6347,7 +6347,7 @@ sub main {
$del_stmt = $nibbler->generate_del_stmt(
tbl_struct => $src->{info},
cols => \@sel_cols,
index => $src->{i},
index => $o->get('primary-key-only') ? 'PRIMARY' : $src->{i},
);
@del_slice = @{$del_stmt->{slice}};