summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorTeemu Ollakka <teemu.ollakka@galeracluster.com>2019-09-13 09:18:11 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2019-09-15 11:24:57 +0300
commit509d103810a862eff22a60a61dfae18227ab8e49 (patch)
treec30b9f8880aaa09733f65ae0f0b09967693f8d33 /sql/sql_parse.cc
parentc946b5f38a5523d58eeb168438ce8512001935ff (diff)
downloadmariadb-git-509d103810a862eff22a60a61dfae18227ab8e49.tar.gz
MDEV-20561 Galera node shutdown fails in non-Primary (#1386)
Command COM_SHUTDOWN was rejected in non-Primary because server_command_flags[COM_SHUTDOWN] had value CF_NO_COM_MULTI instead of CF_SKIP_WSREP_CHECK. As a fix removed assignment server_command_flags[CF_NO_COM_MULTI]= CF_NO_COM_MULTI which overwrote server_command_flags[COM_SHUTDOWN].
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index ab915bf3fcc..4e04ddf544f 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -523,7 +523,6 @@ void init_update_queries(void)
server_command_flags[COM_STMT_SEND_LONG_DATA]= CF_SKIP_WSREP_CHECK;
server_command_flags[COM_REGISTER_SLAVE]= CF_SKIP_WSREP_CHECK;
server_command_flags[COM_MULTI]= CF_SKIP_WSREP_CHECK | CF_NO_COM_MULTI;
- server_command_flags[CF_NO_COM_MULTI]= CF_NO_COM_MULTI;
/* Initialize the sql command flags array. */
memset(sql_command_flags, 0, sizeof(sql_command_flags));