Skip to content
Permalink
Browse files
MDEV-28845 fixup: Prevent an infinite loop
buf_page_create_low(): Before retrying, release the exclusive page latch
in order to prevent an infinite loop in buf_pool_t::corrupted_evict().
  • Loading branch information
dr-m committed Jun 21, 2022
1 parent 3b662c6 commit 55f02c2
Showing 1 changed file with 1 addition and 0 deletions.
@@ -3235,6 +3235,7 @@ static buf_block_t *buf_page_create_low(page_id_t page_id, ulint zip_size,
if (UNIV_UNLIKELY(id != page_id))
{
ut_ad(id.is_corrupted());
bpage->lock.x_unlock();
goto retry;
}
mysql_mutex_lock(&buf_pool.mutex);

0 comments on commit 55f02c2

Please sign in to comment.