1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-5607: Query cache destroys uninitialized rwlock

Destroying rw_lock twice by resize() prevented.
This commit is contained in:
unknown
2014-02-11 10:32:52 +02:00
parent 6ce2135f5d
commit dd7ac46801

View File

@ -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();