Skip to content
Permalink
Browse files
ma_pagecache: release lock in pagecache_read
make_lock_and_pin didn't release the lock so we should.

Found by Coverity (id 972095).
  • Loading branch information
grooverdan authored and Sergey Vojtovich committed Jul 3, 2017
1 parent 2328860 commit 89b81a9
Showing 1 changed file with 1 addition and 0 deletions.
@@ -3474,6 +3474,7 @@ uchar *pagecache_read(PAGECACHE *pagecache,
lock_to_read[lock].unlock_lock,
unlock_pin, FALSE))
{
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_ASSERT(0);
return (uchar*) 0;
}

0 comments on commit 89b81a9

Please sign in to comment.