Skip to content

Commit

Permalink
ma_pagecache: release lock in pagecache_read
Browse files Browse the repository at this point in the history
make_lock_and_pin didn't release the lock so we should.

Found by Coverity (id 972095).
  • Loading branch information
grooverdan authored and svoj committed Jul 3, 2017
1 parent 2328860 commit 89b81a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/maria/ma_pagecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 89b81a9

Please sign in to comment.