Add --[no]drop-new-table.

This commit is contained in:
Daniel Nichter
2012-05-14 11:39:40 -06:00
parent 72d56e3c19
commit e946199534

View File

@@ -5419,6 +5419,12 @@ sub main {
. "--swap-tables failed. To drop the new table, "
. "execute:\n$sql\n";
}
elsif ( !$o->get('drop-new-table') ) {
# https://bugs.launchpad.net/percona-toolkit/+bug/998831
print "Not dropping the new table $new_tbl->{name} because "
. "--no-drop-new-table was specified. To drop the new table, "
. "execute:\n$sql\n";
}
else {
print "Dropping new table...\n";
print $sql, "\n" if $o->get('print');
@@ -7121,6 +7127,12 @@ short form: -F; type: string
Only read mysql options from the given file. You must give an absolute
pathname.
=item --[no]drop-new-table
default: yes
Drop the new table if copying the original table fails.
=item --[no]drop-old-table
default: yes