Skip to content

Commit

Permalink
MDEV-15014 Assertion `m_cache_lock_status == LOCKED_NO_WAIT || m_cach…
Browse files Browse the repository at this point in the history
…e_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.
  • Loading branch information
cvicentiu committed Jan 30, 2018
1 parent 547ec8c commit ded0772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/sql_cache.cc
Expand Up @@ -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;
}
Expand Down

0 comments on commit ded0772

Please sign in to comment.