mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
Sometimes Sandbox.pm tries to kill a connection that's already gone, and that kills the whole test.
This commit is contained in:
@@ -168,7 +168,7 @@ sub wipe_clean {
|
|||||||
(($cxn->{user}||'') eq 'msandbox' && ($cxn->{command}||'') eq 'Sleep')
|
(($cxn->{user}||'') eq 'msandbox' && ($cxn->{command}||'') eq 'Sleep')
|
||||||
|| (($cxn->{User}||'') eq 'msandbox' && ($cxn->{Command}||'') eq 'Sleep')
|
|| (($cxn->{User}||'') eq 'msandbox' && ($cxn->{Command}||'') eq 'Sleep')
|
||||||
) {
|
) {
|
||||||
$dbh->do("KILL $cxn->{id}");
|
eval { $dbh->do("KILL $cxn->{id}"); };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach my $db ( @{$dbh->selectcol_arrayref('SHOW DATABASES')} ) {
|
foreach my $db ( @{$dbh->selectcol_arrayref('SHOW DATABASES')} ) {
|
||||||
|
Reference in New Issue
Block a user