1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-23483: Set Galera SST thd as system thread

Revert change to MDL and set SST donor thread as a system thread.
Joiner thread was already a system thread.
This commit is contained in:
Jan Lindström
2020-08-17 08:57:13 +03:00
parent 6fa40b85be
commit 0be70a1b77
5 changed files with 27 additions and 42 deletions

View File

@ -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);
}