Skip to content

Commit 0b5dc62

Browse files
committed
more mysql_create_view link/unlink woes
1 parent fb70eb7 commit 0b5dc62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/sql_view.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
432432
if (check_dependencies_in_with_clauses(lex->with_clauses_list))
433433
{
434434
res= TRUE;
435-
goto err;
435+
goto err_no_relink;
436436
}
437437

438438
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL);
@@ -449,9 +449,8 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
449449
if (thd->open_temporary_tables(lex->query_tables) ||
450450
open_and_lock_tables(thd, lex->query_tables, TRUE, 0))
451451
{
452-
view= lex->unlink_first_table(&link_to_local);
453452
res= TRUE;
454-
goto err;
453+
goto err_no_relink;
455454
}
456455

457456
#ifdef WITH_WSREP
@@ -723,6 +722,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
723722
#ifdef WITH_WSREP
724723
wsrep_error_label:
725724
res= true;
725+
goto err_no_relink;
726726
#endif
727727

728728
err:

0 commit comments

Comments
 (0)