diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-04-21 13:46:05 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-04-24 13:12:46 +0300 |
commit | 93475aff8de80a0ef53cbee924bcb70de6e86f2c (patch) | |
tree | 2f4c902df61d26323495d498e34aa52265508c2b /sql/sql_repl.cc | |
parent | 9398c3dfa5f8c2b2b5bc51dbf079e3edd343ae9e (diff) | |
download | mariadb-git-93475aff8de80a0ef53cbee924bcb70de6e86f2c.tar.gz |
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.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index 31304c60418..4b8053d0b77 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -3940,7 +3940,7 @@ int reset_master(THD* thd, rpl_gtid *init_state, uint32 init_state_len, } #ifdef WITH_WSREP - if (WSREP_ON) + if (WSREP(thd)) { /* RESET MASTER will initialize GTID sequence, and that would happen locally in this node, so better reject it |