mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-07 21:09:14 +00:00
Check that vars are defined before using them as hashrefs.
This commit is contained in:
@@ -3566,7 +3566,7 @@ sub main {
|
||||
$fks = $tp->get_fks($tbl->{ddl}, {database => $tbl->{db}});
|
||||
}
|
||||
|
||||
next TABLE unless %$keys || %$fks;
|
||||
next TABLE unless ($keys && %$keys) || ($fks && %$fks);
|
||||
|
||||
if ( $o->got('verbose') ) {
|
||||
print_all_keys($keys, $tbl, \%seen_tbl) if $keys;
|
||||
|
Reference in New Issue
Block a user