summaryrefslogtreecommitdiff
path: root/sql/sql_sequence.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2022-01-04 14:18:34 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2022-01-10 08:58:56 +0200
commitc6a890a795595a2049a42a7c7039e03e674b13a1 (patch)
treea50955aedc077367506e2dcbb8959cf86bfd35ac /sql/sql_sequence.cc
parent2ead5bd90ab714d7770e16281c8fa97e15ab3e8d (diff)
downloadmariadb-git-c6a890a795595a2049a42a7c7039e03e674b13a1.tar.gz
MDEV-19353 : Alter Sequence do not replicate to another nodes with in Galera Cluster
Galera replication of new DDL-case was missing
Diffstat (limited to 'sql/sql_sequence.cc')
-rw-r--r--sql/sql_sequence.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_sequence.cc b/sql/sql_sequence.cc
index 83091cd67da..8d1a67eab85 100644
--- a/sql/sql_sequence.cc
+++ b/sql/sql_sequence.cc
@@ -908,6 +908,13 @@ bool Sql_cmd_alter_sequence::execute(THD *thd)
if (check_grant(thd, ALTER_ACL, first_table, FALSE, 1, FALSE))
DBUG_RETURN(TRUE); /* purecov: inspected */
+#ifdef WITH_WSREP
+ if (WSREP_ON && WSREP(thd) &&
+ wsrep_to_isolation_begin(thd, first_table->db.str,
+ first_table->table_name.str,
+ first_table))
+ DBUG_RETURN(TRUE);
+#endif /* WITH_WSREP */
if (if_exists())
thd->push_internal_handler(&no_such_table_handler);
error= open_and_lock_tables(thd, first_table, FALSE, 0);