summaryrefslogtreecommitdiff
path: root/sql/wsrep_var.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/wsrep_var.cc')
-rw-r--r--sql/wsrep_var.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc
index a484f8bf113..64362d1c9e2 100644
--- a/sql/wsrep_var.cc
+++ b/sql/wsrep_var.cc
@@ -88,13 +88,10 @@ static bool refresh_provider_options()
}
}
-static void wsrep_set_wsrep_on(void)
+static void wsrep_set_wsrep_on()
{
- if (global_system_variables.wsrep_on && wsrep_provider &&
- strcmp(wsrep_provider, WSREP_NONE))
- WSREP_ON= true;
- else
- WSREP_ON= false;
+ WSREP_ON_= global_system_variables.wsrep_on && wsrep_provider &&
+ strcmp(wsrep_provider, WSREP_NONE);
}
/* This is intentionally declared as a weak global symbol, so that