summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-06-02 21:25:51 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-06-02 21:31:53 +0300
commit95ac7902969d31550768007b3062013db175d8cf (patch)
treeea23216b84e64c920d4d17d57f2bd73acd99332a
parent457e3128e0294cd822cf72e90ba0dd85a7477e73 (diff)
downloadmariadb-git-95ac7902969d31550768007b3062013db175d8cf.tar.gz
MDEV-22773 Assertion page_get_page_no... in btr_pcur_store_position()
btr_pcur_store_position(): Replace a too strict debug assertion. It is possible to have a clustered index B-tree for a logically empty table, which will consist of a node pointer from the root page to a leaf page that contains the metadata record. The too strict debug assertion was added in commit 0e5a4ac2532c64a545796c787354dc41d61d0e62 (MDEV-15562).
-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 11e822f9e54..230a9b4914f 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_get_page_no(block->frame) == index->page);
+ ut_ad(!page_has_siblings(block->frame));
cursor->rel_pos = BTR_PCUR_AFTER_LAST_IN_TREE;
return;
}