Comment 0 for bug 1722717

Revision history for this message
Jan Lindström (jan-lindstrom) wrote :

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;

+ WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
+
   if (check_dependencies_in_with_clauses(lex->with_clauses_list))
   {
     res= TRUE;
{noformat}