mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Merge lp:~percona-toolkit-dev/percona-toolkit/fix-osc-bug-897483-and-bug-925007.
This commit is contained in:
@@ -4140,7 +4140,7 @@ sub main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $rename_fk_method = lc $o->get('update-foreign-keys-method');
|
my $rename_fk_method = lc($o->get('update-foreign-keys-method') || '');
|
||||||
if ( ($rename_fk_method || '') eq 'drop_old_table' ) {
|
if ( ($rename_fk_method || '') eq 'drop_old_table' ) {
|
||||||
$o->set('rename-tables', 0);
|
$o->set('rename-tables', 0);
|
||||||
$o->set('drop-old-table', 0),
|
$o->set('drop-old-table', 0),
|
||||||
@@ -4325,7 +4325,7 @@ sub main {
|
|||||||
if ( lc $child_tables eq 'auto_detect' ) {
|
if ( lc $child_tables eq 'auto_detect' ) {
|
||||||
msg("Auto-detecting child tables of $tbl");
|
msg("Auto-detecting child tables of $tbl");
|
||||||
@child_tables = get_child_tables(%plugin_args);
|
@child_tables = get_child_tables(%plugin_args);
|
||||||
msg("Child tables of $tables{old_table}: "
|
msg("Child tables of $tables{old_tbl}: "
|
||||||
. (@child_tables ? join(', ', @child_tables) : "(none)"));
|
. (@child_tables ? join(', ', @child_tables) : "(none)"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -30,7 +30,7 @@ my $vp = new VersionParser();
|
|||||||
my $q = new Quoter();
|
my $q = new Quoter();
|
||||||
my $tp = new TableParser(Quoter => $q);
|
my $tp = new TableParser(Quoter => $q);
|
||||||
my $du = new MySQLDump();
|
my $du = new MySQLDump();
|
||||||
my $chunker = new TableChunker(Quoter => $q, MySQLDump => $du);
|
my $chunker = new TableChunker(Quoter => $q, TableParser => $tp);
|
||||||
my $o = new OptionParser();
|
my $o = new OptionParser();
|
||||||
|
|
||||||
$o->get_specs("$trunk/bin/pt-online-schema-change");
|
$o->get_specs("$trunk/bin/pt-online-schema-change");
|
||||||
|
Reference in New Issue
Block a user