Crash on galera.view test

Bug #1722717 reported by Jan Lindström
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Galera
New
Undecided
Unassigned

Bug Description

Problem is that view name is unlinked from table list but wsrep_to_isolation_begin expects it to be on that list and crashes on NULL-pointer.

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}

Revision history for this message
Jan Lindström (jan-lindstrom) wrote :
Revision history for this message
Jan Lindström (jan-lindstrom) wrote :
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.