diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-06-25 14:21:16 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-06-29 11:07:23 +0400 |
commit | a0f5f407eb7dfd7a2d7669e4f61245c72b1e0583 (patch) | |
tree | e82d5577185c2154fed5761df97bb457b6f65592 /sql/table_cache.h | |
parent | 0865e3deab7be2bd49128906fe4f495460ebcbca (diff) | |
download | mariadb-git-a0f5f407eb7dfd7a2d7669e4f61245c72b1e0583.tar.gz |
MDEV-8339 - Server crash during table cache eviction
TDC_element::free_tables_back() had pre-lfhash leftover code, which referenced
TDC_element::free_tables via TDC_element::share. This is not correct as share
may be NULL (newly inserted or to be removed), instead access free_tables
directly.
Diffstat (limited to 'sql/table_cache.h')
-rw-r--r-- | sql/table_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table_cache.h b/sql/table_cache.h index 262028da9f3..4dea5a98772 100644 --- a/sql/table_cache.h +++ b/sql/table_cache.h @@ -109,7 +109,7 @@ public: TABLE *free_tables_back() { - TABLE_list::Iterator it(share->tdc->free_tables); + TABLE_list::Iterator it(free_tables); TABLE *entry, *last= 0; while ((entry= it++)) last= entry; |