mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-10492: Assertion failure on shutdown when wsrep_sst_auth set in config
The memory alloc-ed initially for wsrep_sst_auth to store the value specified in config was lost as the global variable was reset while in process of masking it and thus, could never be reclaimed on shutdown.
This commit is contained in:
@@ -169,10 +169,9 @@ bool wsrep_sst_auth_update (sys_var *self, THD* thd, enum_var_type type)
|
||||
return sst_auth_real_set (wsrep_sst_auth);
|
||||
}
|
||||
|
||||
void wsrep_sst_auth_init (const char* value)
|
||||
void wsrep_sst_auth_init ()
|
||||
{
|
||||
if (wsrep_sst_auth == value) wsrep_sst_auth = NULL;
|
||||
if (value) sst_auth_real_set (value);
|
||||
sst_auth_real_set(wsrep_sst_auth);
|
||||
}
|
||||
|
||||
bool wsrep_sst_donor_check (sys_var *self, THD* thd, set_var* var)
|
||||
|
||||
Reference in New Issue
Block a user