mirror of
https://github.com/MariaDB/server.git
synced 2025-11-08 00:28:29 +03:00
MDEV-15014 Assertion `m_cache_lock_status == LOCKED_NO_WAIT || m_cache_status == DISABLE_REQUEST' failed in Query_cache::free_cache on startup
The assert guards against not-locked or not-requested query cache disabling. If during startup we disable query cache, we failed to request disabling.
This commit is contained in:
@@ -2477,6 +2477,7 @@ void Query_cache::init()
|
|||||||
*/
|
*/
|
||||||
if (global_system_variables.query_cache_type == 0)
|
if (global_system_variables.query_cache_type == 0)
|
||||||
{
|
{
|
||||||
|
m_cache_status= DISABLE_REQUEST;
|
||||||
free_cache();
|
free_cache();
|
||||||
m_cache_status= DISABLED;
|
m_cache_status= DISABLED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user