Skip to content

Commit

Permalink
Fix galera.view test case crash.
Browse files Browse the repository at this point in the history
WSREP_TO_ISOLATION_BEGIN() call must be after view name is back
on tables list.
  • Loading branch information
Jan Lindström committed Dec 19, 2017
1 parent ce4cdfa commit 252e690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/sql_view.cc
Expand Up @@ -425,11 +425,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)

/*
ignore lock specs for CREATE statement
*/
Expand Down

0 comments on commit 252e690

Please sign in to comment.