1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-22051: Protocol::end_statement(): Assertion `0' failed on Galera node upon DDL attempt with conflicting lock

If FTWRL is issued, DDL statements should report error back to user before
TOI is started.
This commit is contained in:
mkaruza
2020-03-31 18:43:10 +02:00
committed by Jan Lindström
parent 476966b3fb
commit edc3899d97
5 changed files with 58 additions and 5 deletions

View File

@ -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) &&