Crash on galera.view test

Bug #1722717 reported by Jan Lindström on 2017-10-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Galera
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}

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

Other bug subscribers