summaryrefslogtreecommitdiff
path: root/sql/sys_vars.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-03-01 16:35:46 +0100
committerSergei Golubchik <serg@mariadb.org>2018-03-01 19:32:01 +0100
commit09b25f85966f44aae933e86b84b4ebe59ded47c3 (patch)
treef66f5d8c6e5862d7f0f1983fd9aa3d534f47c41a /sql/sys_vars.cc
parent7cec685758c9ae222e30eb799a673b819c91fa0f (diff)
downloadmariadb-git-09b25f85966f44aae933e86b84b4ebe59ded47c3.tar.gz
only allow SUPER user to modify wsrep_on
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r--sql/sys_vars.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index 53b606c0336..8a9120abdd0 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -3854,7 +3854,7 @@ static Sys_var_mybool Sys_wsrep_on (
"wsrep_on", "To enable wsrep replication ",
SESSION_VAR(wsrep_on),
CMD_LINE(OPT_ARG), DEFAULT(TRUE),
- NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
+ NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(check_has_super),
ON_UPDATE(wsrep_on_update));
static Sys_var_charptr Sys_wsrep_start_position (