mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-22203: WSREP_ON is unnecessarily expensive to evaluate
Replaced WSREP_ON macro by single global variable WSREP_ON that is then updated at server statup and on wsrep_on and wsrep_provider update functions.
This commit is contained in:
@ -153,6 +153,8 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
|
||||
if (mysql_bin_log.rotate_and_purge(true, drop_gtid_domain))
|
||||
*write_to_binlog= -1;
|
||||
|
||||
/* Note that WSREP(thd) might not be true here e.g. during
|
||||
SST. */
|
||||
if (WSREP_ON)
|
||||
{
|
||||
/* Wait for last binlog checkpoint event to be logged. */
|
||||
|
Reference in New Issue
Block a user