mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:19:18 +00:00
PT-105 Fixed pt-table-checksum fails if a database is dropped while the tool is running
This commit is contained in:
@@ -353,7 +353,14 @@ sub _iterate_dbh {
|
||||
&& $self->_resume_from_table($tbl)
|
||||
&& $self->table_is_allowed($self->{db}, $tbl);
|
||||
}
|
||||
@{$dbh->selectall_arrayref($sql)};
|
||||
|
||||
eval { @{$dbh->selectall_arrayref($sql)}; };
|
||||
if ($EVAL_ERROR) {
|
||||
warn "Skipping $self->{db}...";
|
||||
$self->{db} = undef;
|
||||
next;
|
||||
}
|
||||
|
||||
PTDEBUG && _d('Found', scalar @tbls, 'tables in database',$self->{db});
|
||||
$self->{tbls} = \@tbls;
|
||||
}
|
||||
|
Reference in New Issue
Block a user