mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-3885 - connection suicide via mysql_kill() causes assertion in server
Assertion happened because sql_kill did not set OK status in diagnostic area in the case of connection suicide (id to kill == thd->thread_id), issued via COM_PROCESS_KILL , e.g using mysql_kill() This patch ensures that diagnostic area is initialized in this specific case.
This commit is contained in:
@ -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)
|
||||
if ((!thd->killed) || (thd->thread_id == id))
|
||||
my_ok(thd);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user