mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fix galera.view test case crash.
WSREP_TO_ISOLATION_BEGIN() call must be after view name is back on tables list.
This commit is contained in:
@@ -425,11 +425,12 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
|||||||
|
|
||||||
if ((res= create_view_precheck(thd, tables, view, mode)))
|
if ((res= create_view_precheck(thd, tables, view, mode)))
|
||||||
goto err;
|
goto err;
|
||||||
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
|
|
||||||
|
|
||||||
lex->link_first_table_back(view, link_to_local);
|
lex->link_first_table_back(view, link_to_local);
|
||||||
view->open_type= OT_BASE_ONLY;
|
view->open_type= OT_BASE_ONLY;
|
||||||
|
|
||||||
|
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ignore lock specs for CREATE statement
|
ignore lock specs for CREATE statement
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user