Commit 55f02c24 authored by Marko Mäkelä's avatar Marko Mäkelä

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().
parent 3b662c6e
...@@ -3235,6 +3235,7 @@ static buf_block_t *buf_page_create_low(page_id_t page_id, ulint zip_size, ...@@ -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)) if (UNIV_UNLIKELY(id != page_id))
{ {
ut_ad(id.is_corrupted()); ut_ad(id.is_corrupted());
bpage->lock.x_unlock();
goto retry; goto retry;
} }
mysql_mutex_lock(&buf_pool.mutex); mysql_mutex_lock(&buf_pool.mutex);
......
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