summaryrefslogtreecommitdiff
path: root/sql/sys_vars.cc
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2016-02-17 11:20:48 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2018-03-20 12:10:41 +0200
commit2a729b5f4b14f9f04cf81e1d8dd4eec4ad6cb7cd (patch)
tree1b9846faa0c7c980ff0c9fcada35cb83872387d7 /sql/sys_vars.cc
parente390f7b67509e324033644d017e8d6408d277d02 (diff)
downloadmariadb-git-2a729b5f4b14f9f04cf81e1d8dd4eec4ad6cb7cd.tar.gz
refs MW-245 - merged wsrep_dirty_reads and wsrep_reject_queries from PXC
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r--sql/sys_vars.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index 303633939c3..2ec886f0528 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -1,5 +1,5 @@
/* Copyright (c) 2002, 2015, Oracle and/or its affiliates.
- Copyright (c) 2012, 2015, MariaDB
+ Copyright (c) 2012, 2018, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -4967,6 +4967,14 @@ static Sys_var_mybool Sys_wsrep_desync (
ON_CHECK(wsrep_desync_check),
ON_UPDATE(wsrep_desync_update));
+static const char *wsrep_reject_queries_names[]= { "NONE", "ALL", "ALL_KILL", NullS };
+static Sys_var_enum Sys_wsrep_reject_queries(
+ "wsrep_reject_queries", "Variable to set to reject queries",
+ GLOBAL_VAR(wsrep_reject_queries), CMD_LINE(OPT_ARG),
+ wsrep_reject_queries_names, DEFAULT(WSREP_REJECT_NONE),
+ NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
+ ON_UPDATE(wsrep_reject_queries_update));
+
static const char *wsrep_binlog_format_names[]=
{"MIXED", "STATEMENT", "ROW", "NONE", NullS};
static Sys_var_enum Sys_wsrep_forced_binlog_format(