Commit ae7989ca authored by Sergei Golubchik's avatar Sergei Golubchik

galera.galera_gra_log crashes

reset thd->lex->query_tables_own_last,
because open_table() uses it and will try to dereference
whatever garbage it might have
parent 638ede5b
...@@ -249,6 +249,7 @@ static int open_table(THD* thd, ...@@ -249,6 +249,7 @@ static int open_table(THD* thd,
tables.init_one_table(schema_name, tables.init_one_table(schema_name,
table_name, table_name,
NULL, lock_type); NULL, lock_type);
thd->lex->query_tables_own_last= 0;
if (!open_n_lock_single_table(thd, &tables, tables.lock_type, flags)) { if (!open_n_lock_single_table(thd, &tables, tables.lock_type, flags)) {
if (thd->is_error()) { if (thd->is_error()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment