Handle NAME_lc in Sandbox::wipe_clean().

This commit is contained in:
Daniel Nichter
2012-06-03 15:04:50 -07:00
parent e8d9781123
commit 2afbe4a729

View File

@@ -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}");
}
}