From fb5b200e77b02255527461fc7d8560dcd07f100f Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 17 Mar 2022 09:23:30 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/db/tdbBtree.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index 96d4ed47ef..f771df839b 100644 --- a/source/libs/tdb/src/db/tdbBtree.c +++ b/source/libs/tdb/src/db/tdbBtree.c @@ -496,8 +496,10 @@ static int tdbBtreeBalanceDeeper(SBTree *pBt, SPage *pRoot, SPage **ppChild) { return -1; } - { - // TODO: Copy the over flow part of the page + pChild->nOverflow = pRoot->nOverflow; + for (int i = 0; i < pChild->nOverflow; i++) { + pChild->apOvfl[i] = pRoot->apOvfl[i]; + pChild->aiOvfl[i] = pRoot->aiOvfl[i]; } // Reinitialize the root page -- GitLab