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
This commit is contained in:
Sergei Golubchik 2021-02-16 01:11:41 +01:00 committed by Jan Lindström
parent a5bcec727b
commit 901bcde2dd

View File

@ -230,6 +230,7 @@ static int open_table(THD* thd,
tables.init_one_table(schema_name,
table_name,
NULL, lock_type);
thd->lex->query_tables_own_last= 0;
if (!open_n_lock_single_table(thd, &tables, tables.lock_type, flags)) {
if (thd->is_error()) {