mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-20008: Galera strict mode
Added new enum variable `wsrep_mode` which can be used to turn on WSREP features which are not part of default behaviour. Added enum `BINLOG_ROW_FORMAT_ONLY`, `REQUIRED_PRIMARY_KEY` and `STRICT_REPLICATION`. `wsrep-mode=STRICT_REPLICATION` behaves like variable `wsrep_strict_ddl`. Variable wsrep_strict_ddl is deprecated and if set we use new wsrep_mode setting instead. Reviewed and improved by: Jan Lindström <jan.lindstrom@mariadb.com>
This commit is contained in:
@ -3707,6 +3707,11 @@ mysql_execute_command(THD *thd)
|
||||
thd->set_query_timer();
|
||||
|
||||
#ifdef WITH_WSREP
|
||||
/* Check wsrep_mode rules before command execution. */
|
||||
if (WSREP(thd) &&
|
||||
wsrep_thd_is_local(thd) && !wsrep_check_mode_before_cmd_execute(thd))
|
||||
goto error;
|
||||
|
||||
/*
|
||||
Always start a new transaction for a wsrep THD unless the
|
||||
current command is DDL or explicit BEGIN. This will guarantee that
|
||||
|
Reference in New Issue
Block a user