Skip to content

Commit abd45cd

Browse files
committed
MDEV-20934: Correct a debug assertion
A search with PAGE_CUR_GE may land on the supremum record on a leaf page that is not the rightmost leaf page. This could occur when all keys on the current page are smaller than the search key, and the smallest key on the successor page is larger than the search key. ibuf_delete_recs(): Correct the debug assertion accordingly.
1 parent f127fb9 commit abd45cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/ibuf/ibuf0ibuf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4349,7 +4349,7 @@ ATTRIBUTE_COLD static void ibuf_delete_recs(const page_id_t page_id)
43494349
&pcur, &mtr);
43504350

43514351
if (!btr_pcur_is_on_user_rec(&pcur)) {
4352-
ut_ad(btr_pcur_is_after_last_in_tree(&pcur, &mtr));
4352+
ut_ad(btr_pcur_is_after_last_on_page(&pcur));
43534353
goto func_exit;
43544354
}
43554355

0 commit comments

Comments
 (0)