mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 05:44:59 +00:00
Handle NAME_lc in Sandbox::wipe_clean().
This commit is contained in:
@@ -162,7 +162,10 @@ sub wipe_clean {
|
||||
# the DROP commands will just hang forever.
|
||||
my @cxns = @{$dbh->selectall_arrayref('SHOW FULL PROCESSLIST', {Slice => {}})};
|
||||
foreach my $cxn ( @cxns ) {
|
||||
if ( $cxn->{user} eq 'msandbox' && $cxn->{command} eq 'Sleep' ) {
|
||||
if (
|
||||
(($cxn->{user}||'') eq 'msandbox' && ($cxn->{command}||'') eq 'Sleep')
|
||||
|| (($cxn->{User}||'') eq 'msandbox' && ($cxn->{Command}||'') eq 'Sleep')
|
||||
) {
|
||||
$dbh->do("KILL $cxn->{id}");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user