mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:19:18 +00:00
Fix for 1047335: SchemaIterator fails when it encounters a crashed table
This commit is contained in:
@@ -2549,13 +2549,11 @@ sub get_create_table {
|
||||
PTDEBUG && _d($show_sql);
|
||||
my $href;
|
||||
eval { $href = $dbh->selectrow_hashref($show_sql); };
|
||||
if ( $EVAL_ERROR ) {
|
||||
PTDEBUG && _d($EVAL_ERROR);
|
||||
|
||||
if ( my $e = $EVAL_ERROR ) {
|
||||
PTDEBUG && _d($old_sql_mode);
|
||||
$dbh->do($old_sql_mode);
|
||||
|
||||
return;
|
||||
die $e;
|
||||
}
|
||||
|
||||
PTDEBUG && _d($old_sql_mode);
|
||||
|
Reference in New Issue
Block a user