MDEV-5607: Query cache destroys uninitialized rwlock
Destroying rw_lock twice by resize() prevented.
This commit is contained in:
parent
6ce2135f5d
commit
dd7ac46801
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user