mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -2131,6 +2131,11 @@ static my_bool xarecover_handlerton(THD *unused, plugin_ref plugin,
|
||||
the prepare.
|
||||
*/
|
||||
my_xid wsrep_limit __attribute__((unused))= 0;
|
||||
|
||||
/* Note that we could call this for binlog also that
|
||||
will not have WSREP(thd) but global wsrep on might
|
||||
be true.
|
||||
*/
|
||||
if (WSREP_ON)
|
||||
wsrep_limit= wsrep_order_and_check_continuity(info->list, got);
|
||||
|
||||
|
Reference in New Issue
Block a user