1
0
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:
Jan Lindström
2020-04-21 13:46:05 +03:00
parent 9398c3dfa5
commit 93475aff8d
19 changed files with 89 additions and 49 deletions

View File

@ -4480,7 +4480,7 @@ restart:
}
#ifdef WITH_WSREP
if (WSREP_ON &&
if (WSREP(thd) &&
wsrep_replicate_myisam &&
(*start) &&
(*start)->table &&