codership / mysql-wsrep

wsrep API patch for MySQL server
Other
65 stars 34 forks source link

Crash on galera.view test #314

Open janlindstrom opened 7 years ago

janlindstrom commented 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;
janlindstrom commented 7 years ago

view.tar.gz