summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authormkaruza <mario.karuza@galeracluster.com>2020-03-31 18:43:10 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2020-04-08 16:42:18 +0300
commitedc3899d9781e98b4328931884527913ebffb11f (patch)
tree8363049da5c95323a8027e667cd999f3b583ff38 /sql/sql_parse.cc
parent476966b3fb05ce8c061a4b77a0ab0b722bb0d192 (diff)
downloadmariadb-git-edc3899d9781e98b4328931884527913ebffb11f.tar.gz
MDEV-22051: Protocol::end_statement(): Assertion `0' failed on Galera node upon DDL attempt with conflicting lockbb-10.4-MDEV-22051
If FTWRL is issued, DDL statements should report error back to user before TOI is started.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index e5b9f74c5f3..bd74c91dd99 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3527,7 +3527,7 @@ mysql_execute_command(THD *thd)
* and dirty reads (if configured)
*/
if (!(thd->wsrep_applier) &&
- !(wsrep_ready_get() && wsrep_reject_queries == WSREP_REJECT_NONE) &&
+ !(wsrep_ready_get() && wsrep_reject_queries == WSREP_REJECT_NONE) &&
!(thd->variables.wsrep_dirty_reads &&
(sql_command_flags[lex->sql_command] & CF_CHANGES_DATA) == 0) &&
!wsrep_tables_accessible_when_detached(all_tables) &&