Commit 0497ecc2 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix regression in sp_notembedded after MDEV-3885

parent 0f8450b2
......@@ -6717,7 +6717,7 @@ void sql_kill(THD *thd, ulong id, killed_state state)
uint error;
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);
}
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment