From 01e7b1819ece2c46a6d256285d5503c74e281c77 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 21 Jun 2023 14:54:22 +0100 Subject: [PATCH] Remove $has_child_tables var (#617) Remove $has_child_tables check as this seems a duplicate of the check within the alter_fk_method block. --- bin/pt-online-schema-change | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index 13c987f2..42e3f82a 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -9149,13 +9149,6 @@ sub main { # ######################################################################## my $child_tables; - my $have_child_tables = find_child_tables( - tbl => $orig_tbl, - Cxn => $cxn, - Quoter => $q, - only_same_schema_fks => $o->get('only-same-schema-fks'), - ); - my $vp = VersionParser->new($cxn->dbh()); if (($vp->cmp('8.0.14') >= 0 && $vp->cmp('8.0.17') <= 0) && $vp->flavor() !~ m/maria/i) { my $msg = "There is an error in MySQL that makes the server to die when trying to ".