Skip to content

Commit d33c9ca

Browse files
MDEV-22902 Assertion `!page_has_siblings(block->frame)' failed in btr_pcur_store_position
- There is a possiblity that metadata record is the only record in the leftmost leaf page. So change the assertion to check only previous page.
1 parent b7324e1 commit d33c9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/btr/btr0pcur.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ btr_pcur_store_position(
154154
ut_ad(index->table->instant);
155155
ut_ad(page_get_n_recs(block->frame) == 1);
156156
ut_ad(page_is_leaf(block->frame));
157-
ut_ad(!page_has_siblings(block->frame));
157+
ut_ad(!page_has_prev(block->frame));
158158
cursor->rel_pos = BTR_PCUR_AFTER_LAST_IN_TREE;
159159
return;
160160
}

0 commit comments

Comments
 (0)