summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2021-03-01 15:21:31 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2021-03-01 15:21:31 +0200
commitebb2db5912ebb9b4e3ef230f15ae65529ff30be4 (patch)
tree980aa6fcfb5e86ed2cbfa23a80dfb5d18855b63a /sql/sql_class.h
parentb47304eb02fd203ab9ecd29261e6915e0059af0a (diff)
downloadmariadb-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/sql_class.h')
-rw-r--r--sql/sql_class.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 2913a4a8350..bf7f26527b0 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -5239,6 +5239,8 @@ public:
uint64 wsrep_current_gtid_seqno;
ulong wsrep_affected_rows;
bool wsrep_has_ignored_error;
+ /* true if wsrep_on was ON in last wsrep_on_update */
+ bool wsrep_was_on;
/*
When enabled, do not replicate/binlog updates from the current table that's