summaryrefslogtreecommitdiff
path: root/sql/sql_plugin_services.ic
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2019-02-05 15:41:53 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2019-03-28 08:43:44 +0200
commit81d71ee6b21870772c336bff15b71904914f146a (patch)
tree72bb4aeb8a81ad04047a48102d3756a010b43eb5 /sql/sql_plugin_services.ic
parent21b2fada7ab7f35c898c02d2f918461409cc9c8e (diff)
downloadmariadb-git-81d71ee6b21870772c336bff15b71904914f146a.tar.gz
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.
Diffstat (limited to 'sql/sql_plugin_services.ic')
-rw-r--r--sql/sql_plugin_services.ic3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_plugin_services.ic b/sql/sql_plugin_services.ic
index 427d8937c57..d70c76701fd 100644
--- a/sql/sql_plugin_services.ic
+++ b/sql/sql_plugin_services.ic
@@ -181,7 +181,8 @@ static struct wsrep_service_st wsrep_handler = {
wsrep_trx_is_aborting,
wsrep_trx_order_before,
wsrep_unlock_rollback,
- wsrep_set_data_home_dir
+ wsrep_set_data_home_dir,
+ wsrep_thd_is_applier,
};
static struct thd_specifics_service_st thd_specifics_handler=