mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fix regression in sp_notembedded after MDEV-3885
This commit is contained in:
@ -6717,7 +6717,7 @@ void sql_kill(THD *thd, ulong id, killed_state state)
|
|||||||
uint error;
|
uint error;
|
||||||
if (!(error= kill_one_thread(thd, id, state)))
|
if (!(error= kill_one_thread(thd, id, state)))
|
||||||
{
|
{
|
||||||
if ((!thd->killed) || (thd->thread_id == id))
|
if ((!thd->killed) || (thd->thread_id == id && thd->killed >= KILL_CONNECTION))
|
||||||
my_ok(thd);
|
my_ok(thd);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user