mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix yet another regression after MDEV-3885.
If connection kills itself (or own query), it will get an error consistently, with both COM_PROCESSKILL and with "KILL [QUERY] id"
This commit is contained in:
@ -6717,8 +6717,10 @@ 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 && thd->killed >= KILL_CONNECTION))
|
||||
if ((!thd->killed))
|
||||
my_ok(thd);
|
||||
else
|
||||
my_error(killed_errno(thd->killed), MYF(0), id);
|
||||
}
|
||||
else
|
||||
my_error(error, MYF(0), id);
|
||||
|
Reference in New Issue
Block a user