mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MW-416 Replicate DDL after ACL check
CREATE VIEW handling had an issue, because CREATE VIEW replication happened when view was unlinked from table list. This caused debug assert in wsrep_mysqld.cc:wsrep_can_run_in_toi() MySQL 5.5 version does not have this assert, but it is still better to run replication when table list is not manipulated.
This commit is contained in:
@ -429,10 +429,10 @@ 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;
|
||||
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL);
|
||||
|
||||
if (open_and_lock_tables(thd, lex->query_tables, TRUE, 0))
|
||||
{
|
||||
|
Reference in New Issue
Block a user