Commit dd7ac468 authored by unknown's avatar unknown

MDEV-5607: Query cache destroys uninitialized rwlock

Destroying rw_lock twice by resize() prevented.
parent 6ce2135f
...@@ -1326,6 +1326,7 @@ ulong Query_cache::resize(ulong query_cache_size_arg) ...@@ -1326,6 +1326,7 @@ ulong Query_cache::resize(ulong query_cache_size_arg)
query->unlock_n_destroy(); query->unlock_n_destroy();
block= block->next; block= block->next;
} while (block != queries_blocks); } while (block != queries_blocks);
queries_blocks= NULL; // avoid second destroying by free_cache
} }
free_cache(); free_cache();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment