mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: ibuf_merge_or_delete_for_page(): Check that the changes would
be merged to a leaf page.
This commit is contained in:
parent
a10e1a5e64
commit
e6aeb98755
1 changed files with 3 additions and 2 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue