Skip to content

Commit 55f02c2

Browse files
committed
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().
1 parent 3b662c6 commit 55f02c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3235,6 +3235,7 @@ static buf_block_t *buf_page_create_low(page_id_t page_id, ulint zip_size,
32353235
if (UNIV_UNLIKELY(id != page_id))
32363236
{
32373237
ut_ad(id.is_corrupted());
3238+
bpage->lock.x_unlock();
32383239
goto retry;
32393240
}
32403241
mysql_mutex_lock(&buf_pool.mutex);

0 commit comments

Comments
 (0)