summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-07-19 21:05:36 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2018-07-19 21:05:36 +0300
commitf99fe68b4fb7ca1715d059d283e50f050f692294 (patch)
treeac449900b70d5216b7dca17b098589ed277cdab8 /sql
parentc09d54924a46df13daf68f61caf906b6fecefca1 (diff)
downloadmariadb-git-f99fe68b4fb7ca1715d059d283e50f050f692294.tar.gz
Fix compile error.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_trigger.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index 34875824e2e..784464110cf 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -508,7 +508,9 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create)
if (err_status)
goto end;
}
- WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL);
+
+ if (thd->wsrep_exec_mode == LOCAL_STATE)
+ WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL);
/* We should have only one table in table list. */
DBUG_ASSERT(tables->next_global == 0);