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:
parent
547ec8ce27
commit
ded07724ee
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user