Commit 4becc5cf authored by marko's avatar marko

branches/zip: ibuf_merge_or_delete_for_page(): Check that the changes would

be merged to a leaf page.
parent dd1b7e42
......@@ -3299,7 +3299,8 @@ ibuf_merge_or_delete_for_page(
page_zip = buf_block_get_page_zip(block);
if (UNIV_UNLIKELY(fil_page_get_type(block->frame)
!= FIL_PAGE_INDEX)) {
!= FIL_PAGE_INDEX)
|| UNIV_UNLIKELY(!page_is_leaf(block->frame))) {
corruption_noticed = TRUE;
......@@ -3326,7 +3327,7 @@ ibuf_merge_or_delete_for_page(
"InnoDB: buffer records to page n:o %lu"
" though the page\n"
"InnoDB: type is %lu, which is"
" not an index page!\n"
" not an index leaf page!\n"
"InnoDB: We try to resolve the problem"
" by skipping the insert buffer\n"
"InnoDB: merge for this page."
......
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