From dd7ac4680172ce2f2b23f877ecdd965ea2914968 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 11 Feb 2014 10:32:52 +0200 Subject: MDEV-5607: Query cache destroys uninitialized rwlock Destroying rw_lock twice by resize() prevented. --- sql/sql_cache.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_cache.cc') 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(); -- cgit v1.2.1