Commit 2c7e55dd authored by marko's avatar marko

branches/zip: buf_merge_or_delete_for_page(): Correct some debug assertions.

We cannot call buf_block_get_space() or buf_block_get_page_no(),
because the assertions there can fail.
parent 706c5592
......@@ -3140,8 +3140,8 @@ ibuf_merge_or_delete_for_page(
ibool corruption_noticed = FALSE;
mtr_t mtr;
ut_ad(!block || buf_block_get_space(block) == space);
ut_ad(!block || buf_block_get_page_no(block) == page_no);
ut_ad(!block || block->space == space);
ut_ad(!block || block->offset == page_no);
ut_ad(!block || buf_block_get_zip_size(block) == zip_size);
if (srv_force_recovery >= SRV_FORCE_NO_IBUF_MERGE) {
......
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