Fix test failure on galera.view caused by incorrect location

of WSREP_TO_ISOLATION_BEGIN.
This commit is contained in:
Jan Lindström 2017-10-10 16:53:15 +03:00
parent 1b478a7aba
commit f2a0fa8685

View file

@ -426,11 +426,12 @@ 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 (check_dependencies_in_with_clauses(lex->with_clauses_list))
{
res= TRUE;