summaryrefslogtreecommitdiff
path: root/sql/wsrep_sst.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2020-04-21 13:46:05 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2020-04-24 13:12:46 +0300
commit93475aff8de80a0ef53cbee924bcb70de6e86f2c (patch)
tree2f4c902df61d26323495d498e34aa52265508c2b /sql/wsrep_sst.cc
parent9398c3dfa5f8c2b2b5bc51dbf079e3edd343ae9e (diff)
downloadmariadb-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/wsrep_sst.cc')
-rw-r--r--sql/wsrep_sst.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/wsrep_sst.cc b/sql/wsrep_sst.cc
index 02f7d4b6760..c14cfe814fa 100644
--- a/sql/wsrep_sst.cc
+++ b/sql/wsrep_sst.cc
@@ -367,6 +367,7 @@ void wsrep_sst_received (THD* thd,
my_pthread_setspecific_ptr(THR_THD, NULL);
}
+ /* During sst WSREP(thd) is not yet set for joiner. */
if (WSREP_ON)
{
int const rcode(seqno < 0 ? seqno : 0);