diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2021-03-01 15:21:31 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2021-03-01 15:21:31 +0200 |
commit | ebb2db5912ebb9b4e3ef230f15ae65529ff30be4 (patch) | |
tree | 980aa6fcfb5e86ed2cbfa23a80dfb5d18855b63a /sql/sys_vars.cc | |
parent | b47304eb02fd203ab9ecd29261e6915e0059af0a (diff) | |
download | mariadb-git-bb-10.6-MDEV-20715.tar.gz |
MDEV-20715 : Implement system variable to disallow local GTIDs in Galerabb-10.6-MDEV-20715
Added a new wsrep_mode feature DISALLOW_LOCAL_GTID for this.
Nodes can have GTIDs for local transactions in the following scenarios:
A DDL statement is executed with wsrep_OSU_method=RSU set.
A DML statement writes to a non-InnoDB table.
A DML statement writes to an InnoDB table with wsrep_on=OFF set.
If user has set wsrep_mode=DISALLOW_LOCAL_GTID these operations
produce a error ERROR HY000: Galera replication not supported
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r-- | sql/sys_vars.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index f817f9086a9..8b73484cb8a 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -5933,6 +5933,7 @@ static const char *wsrep_mode_names[]= "REQUIRED_PRIMARY_KEY", "REPLICATE_MYISAM", "REPLICATE_ARIA", + "DISALLOW_LOCAL_GTID", NullS }; static Sys_var_set Sys_wsrep_mode( |