diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-02-16 01:11:41 +0100 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2021-02-17 17:10:53 +0200 |
commit | 901bcde2dded205835d6ccfc66e0b365d4e0ea66 (patch) | |
tree | 8243690cad804b4ce665791f4fe19cd5ec0e8073 | |
parent | a5bcec727b096f634e43f9031440cc1dc9e302c2 (diff) | |
download | mariadb-git-901bcde2dded205835d6ccfc66e0b365d4e0ea66.tar.gz |
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
-rw-r--r-- | sql/wsrep_schema.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/wsrep_schema.cc b/sql/wsrep_schema.cc index 9a09fbc8902..b2346aba508 100644 --- a/sql/wsrep_schema.cc +++ b/sql/wsrep_schema.cc @@ -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()) { |