From 99d3de8297a4370768ffaf56f4bb31a27333d959 Mon Sep 17 00:00:00 2001 From: Bernard Grymonpon Date: Wed, 25 Sep 2019 12:10:22 +0200 Subject: [PATCH] Restrict the FK check if needed The find_child_tables is a heavy call if there are a lot of tables. This should honor the `only-same-schema-fks` option. --- bin/pt-online-schema-change | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index 31f09bd5..47325066 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -8969,6 +8969,7 @@ sub main { tbl => $orig_tbl, Cxn => $cxn, Quoter => $q, + only_same_schema_fks => $o->get('only-same-schema-fks'), ); my $vp = VersionParser->new($cxn->dbh());