mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch 10.5 into 10.6
This commit is contained in:
@ -9393,15 +9393,17 @@ sql_kill_user(THD *thd, LEX_USER *user, killed_state state)
|
||||
{
|
||||
uint error;
|
||||
ha_rows rows;
|
||||
if (likely(!(error= kill_threads_for_user(thd, user, state, &rows))))
|
||||
my_ok(thd, rows);
|
||||
else
|
||||
switch (error= kill_threads_for_user(thd, user, state, &rows))
|
||||
{
|
||||
/*
|
||||
This is probably ER_OUT_OF_RESOURCES, but in the future we may
|
||||
want to write the name of the user we tried to kill
|
||||
*/
|
||||
my_error(error, MYF(0), user->host.str, user->user.str);
|
||||
case 0:
|
||||
my_ok(thd, rows);
|
||||
break;
|
||||
case ER_KILL_DENIED_ERROR:
|
||||
my_error(error, MYF(0), (long long) thd->thread_id);
|
||||
break;
|
||||
case ER_OUT_OF_RESOURCES:
|
||||
default:
|
||||
my_error(error, MYF(0));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user