Commit dd8c87f7 authored by serg@serg.mylan's avatar serg@serg.mylan

bug fixed: when inited=0, can_be_used should be 0 too. (BUG#4901)

parent 902518ae
...@@ -625,7 +625,7 @@ writes: %ld r_requests: %ld reads: %ld", ...@@ -625,7 +625,7 @@ writes: %ld r_requests: %ld reads: %ld",
if (cleanup) if (cleanup)
{ {
pthread_mutex_destroy(&keycache->cache_lock); pthread_mutex_destroy(&keycache->cache_lock);
keycache->key_cache_inited= 0; keycache->key_cache_inited= keycache->can_be_used= 0;
KEYCACHE_DEBUG_CLOSE; KEYCACHE_DEBUG_CLOSE;
} }
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment