diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-08-17 08:43:36 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-08-25 07:06:37 +0300 |
commit | afc7a97f9ff46eb23c0369b23acc9801631f3c59 (patch) | |
tree | 2ca66b657ac832dc3f31ed13a76477ee0fb5afb4 /sql/wsrep_utils.cc | |
parent | 65ee216c35d843da7883d255219ab011e20340c2 (diff) | |
download | mariadb-git-bb-10.5-MDEV-23483.tar.gz |
MDEV-23483: Set Galera SST thd as system threadbb-10.5-MDEV-23483
Revert change to MDL and set SST donor thread as a system thread.
Joiner thread was already a system thread.
Diffstat (limited to 'sql/wsrep_utils.cc')
-rw-r--r-- | sql/wsrep_utils.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/wsrep_utils.cc b/sql/wsrep_utils.cc index 148def54aaf..a679304c40a 100644 --- a/sql/wsrep_utils.cc +++ b/sql/wsrep_utils.cc @@ -417,7 +417,7 @@ process::wait () return err_; } -thd::thd (my_bool won) : init(), ptr(new THD(0)) +thd::thd (my_bool won, bool system_thread) : init(), ptr(new THD(0)) { if (ptr) { @@ -426,6 +426,8 @@ thd::thd (my_bool won) : init(), ptr(new THD(0)) wsrep_store_threadvars(ptr); ptr->variables.option_bits&= ~OPTION_BIN_LOG; // disable binlog ptr->variables.wsrep_on= won; + if (system_thread) + ptr->system_thread= SYSTEM_THREAD_GENERIC; ptr->security_ctx->master_access= ALL_KNOWN_ACL; lex_start(ptr); } |