mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Add PTDEVDEBUG statements to PerconaTest::wait_for_table().
This commit is contained in:
@@ -264,9 +264,15 @@ sub wait_for_table {
|
|||||||
sub {
|
sub {
|
||||||
my $r;
|
my $r;
|
||||||
eval { $r = $dbh->selectrow_arrayref($sql); };
|
eval { $r = $dbh->selectrow_arrayref($sql); };
|
||||||
return 0 if $EVAL_ERROR;
|
if ( $EVAL_ERROR ) {
|
||||||
if ( $where ) {
|
PTDEVDEBUG && _d('Waiting on', $dbh, 'for table', $tbl,
|
||||||
return 0 unless $r && @$r;
|
'error:', $EVAL_ERROR);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if ( $where && (!$r || !scalar @$r) ) {
|
||||||
|
PTDEVDEBUG && _d('Waiting on', $dbh, 'for table', $tbl,
|
||||||
|
'WHERE', $where);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user