Open janlindstrom opened 7 years ago
Problem is that WSREP_TO_ISOLATION_BEGIN assumes that view is on tables list but it is unlinked there before call. Suggested fix:
{noformat} diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 6e58564262c..cdb65a79660 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -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;
if (check_dependencies_in_with_clauses(lex->with_clauses_list)) { res= TRUE; {noformat}
view.tar.gz
Problem is that WSREP_TO_ISOLATION_BEGIN assumes that view is on tables list but it is unlinked there before call. Suggested fix:
{noformat} diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 6e58564262c..cdb65a79660 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -426,11 +426,12 @@ bool mysql_create_view(THD thd, TABLE_LIST views,
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; {noformat}