summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-11-11 13:56:55 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-11-11 14:14:26 +0200
commitdfdd96214b64d0ad03ff2192a43ae43fb611e2a9 (patch)
treeef7c4cd59070a67966493972bbd2e7dee78de7d5
parentfc2ca2be4e4f1dd2cfa651747420ea9e2772d172 (diff)
downloadmariadb-git-dfdd96214b64d0ad03ff2192a43ae43fb611e2a9.tar.gz
MDEV-21024: Clean up btr_root_raise_and_insert()
The root page must never have any siblings, so it is unnecessary to clear those fields.
-rw-r--r--storage/innobase/btr/btr0btr.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/storage/innobase/btr/btr0btr.cc b/storage/innobase/btr/btr0btr.cc
index 98818dd40c2..a9b84bdb8da 100644
--- a/storage/innobase/btr/btr0btr.cc
+++ b/storage/innobase/btr/btr0btr.cc
@@ -1985,13 +1985,7 @@ btr_root_raise_and_insert(
/* Rebuild the root page to get free space */
btr_page_empty(root_block, root_page_zip, index, level + 1, mtr);
- /* Set the next node and previous node fields, although
- they should already have been set. The previous node field
- must be FIL_NULL if root_page_zip != NULL, because the
- REC_INFO_MIN_REC_FLAG (of the first user record) will be
- set if and only if !page_has_prev(). */
- btr_page_set_next(root, root_page_zip, FIL_NULL, mtr);
- btr_page_set_prev(root, root_page_zip, FIL_NULL, mtr);
+ ut_ad(!page_has_siblings(root));
page_cursor = btr_cur_get_page_cur(cursor);