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:
@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user