summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2020-06-01 12:34:33 +0300
committerJulius Goryavsky <julius.goryavsky@mariadb.com>2020-06-03 15:34:44 +0200
commit8ec0e9111a49fe451109e5a558aeb603eca82259 (patch)
treee8cd0278fdcf6266078543d9baf0047450f0f9d6 /sql/wsrep_mysqld.cc
parent40dbf0ea0e678370f4c34700e9868b3560cf8301 (diff)
downloadmariadb-git-8ec0e9111a49fe451109e5a558aeb603eca82259.tar.gz
MDEV-22763 backporting MDEV-20225 fix into 10.1
Backported the support for aborting and replaying stored procedure and fix for trigger key assigments from 10.4 version. Backported also two mtr tests: wsrep_sp_bf_abort and MDEV-20225
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index f38bf85cd1a..38f8ca413db 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -1570,7 +1570,6 @@ static bool wsrep_can_run_in_toi(THD *thd, const char *db, const char *table,
case SQLCOM_CREATE_TRIGGER:
- DBUG_ASSERT(!table_list);
DBUG_ASSERT(first_table);
if (find_temporary_table(thd, first_table))
@@ -1579,6 +1578,14 @@ static bool wsrep_can_run_in_toi(THD *thd, const char *db, const char *table,
}
return true;
+ case SQLCOM_DROP_TRIGGER:
+ DBUG_ASSERT(table_list);
+ if (find_temporary_table(thd, table_list))
+ {
+ return false;
+ }
+ return true;
+
default:
if (table && !find_temporary_table(thd, db, table))
{