diff options
author | unknown <sanja@askmonty.org> | 2014-02-11 10:32:52 +0200 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2014-02-11 10:32:52 +0200 |
commit | dd7ac4680172ce2f2b23f877ecdd965ea2914968 (patch) | |
tree | e5b45d9930745f2962decb6ca9bd99dfc7e4bb2a /sql/sql_cache.cc | |
parent | 6ce2135f5dca37a264d0e08fe399cb941269978c (diff) | |
download | mariadb-git-dd7ac4680172ce2f2b23f877ecdd965ea2914968.tar.gz |
MDEV-5607: Query cache destroys uninitialized rwlock
Destroying rw_lock twice by resize() prevented.
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 82f47f7c861..d558572f3a2 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -1326,6 +1326,7 @@ ulong Query_cache::resize(ulong query_cache_size_arg) query->unlock_n_destroy(); block= block->next; } while (block != queries_blocks); + queries_blocks= NULL; // avoid second destroying by free_cache } free_cache(); |