summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 87970ee11b4..623c0eff5b9 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -4430,6 +4430,19 @@ restart:
else
tbl->reginfo.lock_type= tables->lock_type;
}
+#ifdef WITH_WSREP
+ /*
+ At this point we have SE associated with table so we can check wsrep_mode
+ rules at this point.
+ */
+ if (WSREP(thd) &&
+ wsrep_thd_is_local(thd) &&
+ !wsrep_check_mode_after_open_table(thd, tbl->file->ht->db_type))
+ {
+ error= TRUE;
+ goto error;
+ }
+#endif
}
#ifdef WITH_WSREP