Commit 89b81a9a authored by Daniel Black's avatar Daniel Black Committed by Sergey Vojtovich

ma_pagecache: release lock in pagecache_read

make_lock_and_pin didn't release the lock so we should.

Found by Coverity (id 972095).
parent 23288603
...@@ -3474,6 +3474,7 @@ uchar *pagecache_read(PAGECACHE *pagecache, ...@@ -3474,6 +3474,7 @@ uchar *pagecache_read(PAGECACHE *pagecache,
lock_to_read[lock].unlock_lock, lock_to_read[lock].unlock_lock,
unlock_pin, FALSE)) unlock_pin, FALSE))
{ {
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_ASSERT(0); DBUG_ASSERT(0);
return (uchar*) 0; return (uchar*) 0;
} }
......
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