Commit e25a5b65 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Make using --force automatically disable --opt (table optimization).

parent 12de5436
......@@ -92,6 +92,9 @@ Command line switches:
NOTE: This switch will not ever force overwriting of
a server database directory.
NOTE: Using --force will bypass the table
optimization step.
--only_tables=XXX,YYY
(Optional)
Only copy the tables specified in the
......@@ -179,6 +182,11 @@ if ( defined($opt_skip_tables) && defined($opt_only_tables) ) {
die("Can't use both --only_tables and --skip_tables\n");
}
if ( $opt_force && $opt_optimize ) {
print("Note: Using --force will bypass optimization.\n");
$opt_optimize = 0;
}
my %only_tables;
if ( defined($opt_only_tables) ) {
%only_tables = map( { $_ => 1 } split( /,/, $opt_only_tables ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment