diff options
author | sjaakola <seppo.jaakola@iki.fi> | 2017-10-03 23:37:02 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2017-10-10 08:37:44 +0300 |
commit | 1841ef1c5458634a88ef4faad5883552d9f354b2 (patch) | |
tree | 6469d668c3c01e1015c664223f313150a1d35a63 /sql/sql_view.cc | |
parent | e1d9a237978432082d50f8078838b28261917c8e (diff) | |
download | mariadb-git-1841ef1c5458634a88ef4faad5883552d9f354b2.tar.gz |
MW-416
Moved TOI replication to happen after ACL checking for commands:
SQLCOM_CREATE_EVENT
SQLCOM_ALTER_EVENT
SQLCOM_DROP_EVENT
SQLCOM_CREATE_VIEW
SQLCOM_CREATE_TRIGGER
SQLCOM_DROP_TRIGGER
SQLCOM_INSTALL_PLUGIN
SQLCOM_UNINSTALL_PLUGIN
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index d39dc739893..6e58564262c 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -426,6 +426,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views, if ((res= create_view_precheck(thd, tables, view, mode))) goto err; + WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL) lex->link_first_table_back(view, link_to_local); view->open_type= OT_BASE_ONLY; @@ -702,6 +703,10 @@ err: lex->link_first_table_back(view, link_to_local); unit->cleanup(); DBUG_RETURN(res || thd->is_error()); +#ifdef WITH_WSREP + error: + DBUG_RETURN(true); +#endif /* WITH_WSREP */ } |