Skip to content

Commit 252e690

Browse files
committed
Fix galera.view test case crash.
WSREP_TO_ISOLATION_BEGIN() call must be after view name is back on tables list.
1 parent ce4cdfa commit 252e690

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/sql_view.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,12 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
425425

426426
if ((res= create_view_precheck(thd, tables, view, mode)))
427427
goto err;
428-
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
429428

430429
lex->link_first_table_back(view, link_to_local);
431430
view->open_type= OT_BASE_ONLY;
432431

432+
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
433+
433434
/*
434435
ignore lock specs for CREATE statement
435436
*/

0 commit comments

Comments
 (0)