summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2020-06-17 22:03:27 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2020-06-17 22:09:16 +0530
commitd33c9ca1b012f8a723f4f712c1d8fb71577c5670 (patch)
tree77fd5bc091cc9b28b9df226696c06f1a5d98bd60
parentb7324e133f569acde8622429425f6e608c4d88a1 (diff)
downloadmariadb-git-d33c9ca1b012f8a723f4f712c1d8fb71577c5670.tar.gz
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.
-rw-r--r--storage/innobase/btr/btr0pcur.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/btr/btr0pcur.cc b/storage/innobase/btr/btr0pcur.cc
index 230a9b4914f..37444ee974d 100644
--- a/storage/innobase/btr/btr0pcur.cc
+++ b/storage/innobase/btr/btr0pcur.cc
@@ -154,7 +154,7 @@ before_first:
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;
}