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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user