MDEV-22369 Assertion `err == DB_SUCCESS' failed. in btr_block_get_func during crash recovery

- buf_page_get_gen() fails to set error value when it initializes the
page with redo logs.
parent 25cb2b37
......@@ -3974,6 +3974,8 @@ buf_page_get_gen(
block->fix();
ut_ad(rw_lock_s_lock_nowait(block->debug_latch, file, line));
block= buf_page_mtr_lock(block, rw_latch, mtr, file, line);
if (err)
*err= DB_SUCCESS;
return block;
}
......
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