mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 09:04:29 +02:00
MDEV-12009: Allow to force kill user threads/query which are flagged as high priority by Galera
As noted on kill_one_thread SUPER should be able to kill even system threads i.e. threads/query flagged as high priority or wsrep applier thread. Normal user, should not able to kill threads/query flagged as high priority (BF) or wsrep applier thread.
This commit is contained in:
parent
21b2fada7a
commit
81d71ee6b2
10 changed files with 95 additions and 8 deletions
|
|
@ -596,6 +596,15 @@ my_bool wsrep_thd_is_BF(THD *thd, my_bool sync)
|
|||
return status;
|
||||
}
|
||||
|
||||
my_bool wsrep_thd_is_applier(THD *thd)
|
||||
{
|
||||
my_bool ret = FALSE;
|
||||
if (thd) {
|
||||
ret = thd->wsrep_applier;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
my_bool wsrep_thd_is_BF_or_commit(void *thd_ptr, my_bool sync)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue