diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-08-17 08:57:13 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-08-24 15:00:50 +0300 |
commit | f5a3b118df034a2412fa744ae132f1af09ba8111 (patch) | |
tree | bd09b40201ee887f0860846cc2cde3e222c968ff /sql/wsrep_utils.cc | |
parent | f3160ee44f8f3ae4e5eeea768e289ec40253f35e (diff) | |
download | mariadb-git-bb-10.2-MDEV-23483.tar.gz |
MDEV-23483: Set Galera SST thd as system threadbb-10.2-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 599ece4cb40..e86be3e5d93 100644 --- a/sql/wsrep_utils.cc +++ b/sql/wsrep_utils.cc @@ -413,7 +413,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) { @@ -421,6 +421,8 @@ thd::thd (my_bool won) : init(), ptr(new THD(0)) ptr->store_globals(); 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= ~(ulong)0; lex_start(ptr); } |