mirror of
https://github.com/MariaDB/server.git
synced 2025-11-06 13:10:12 +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)
|
||||
{
|
||||
m_cache_status= DISABLE_REQUEST;
|
||||
free_cache();
|
||||
m_cache_status= DISABLED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user