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.
parent b7324e13
......@@ -154,7 +154,7 @@ btr_pcur_store_position(
ut_ad(index->table->instant);
ut_ad(page_get_n_recs(block->frame) == 1);
ut_ad(page_is_leaf(block->frame));
ut_ad(!page_has_siblings(block->frame));
ut_ad(!page_has_prev(block->frame));
cursor->rel_pos = BTR_PCUR_AFTER_LAST_IN_TREE;
return;
}
......
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