mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
bugfix ajax kill of running query (id check untested)
This commit is contained in:
parent
fd0b6378eb
commit
87daa014d3
@ -1495,7 +1495,16 @@ class DB{
|
||||
if($pid <= 0) {
|
||||
return false;
|
||||
}
|
||||
return mysqli_query($this->connection, 'KILL QUERY '.$pid);
|
||||
|
||||
// Get list of processes
|
||||
$list_of_processes = mysqli_query($this->connection, "select id from information_schema.processlist where id=$pid");
|
||||
if (get_class($list_of_processes) == 'mysqli') {
|
||||
if (mysqli_num_rows($list_of_processes) > 0) {
|
||||
$result = mysqli_query($this->connection, 'KILL QUERY '.$pid);
|
||||
return($result);
|
||||
}
|
||||
}
|
||||
return(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user