summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2020-09-08 11:14:37 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2020-09-08 11:14:37 +0300
commitc5517cd86440b6669509211b1ad10f837a929952 (patch)
tree25bba31af74c3dbaa506c15294b06888edcce0d2 /sql/wsrep_mysqld.cc
parent9842ed4e6dde3f8dfda753e069b72975be73218a (diff)
downloadmariadb-git-c5517cd86440b6669509211b1ad10f837a929952.tar.gz
MDEV-23638 : DROP TRIGGER in Galera Cluster not replicating
Drop trigger handling was missing from wsrep_can_run_in_toi in 10.5 for some reason.
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index ae664e951b5..a6b0991e82b 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -1927,6 +1927,14 @@ bool wsrep_can_run_in_toi(THD *thd, const char *db, const char *table,
}
return true;
break;
+ case SQLCOM_DROP_TRIGGER:
+ DBUG_ASSERT(table_list);
+ if (thd->find_temporary_table(table_list))
+ {
+ return false;
+ }
+ return true;
+ break;
case SQLCOM_ALTER_TABLE:
if (create_info &&
!wsrep_should_replicate_ddl(thd, create_info->db_type->db_type))