This commit is contained in:
Hongze Cheng 2022-03-23 08:59:10 +00:00
parent 795981feae
commit 2bb84eeb2b
1 changed files with 3 additions and 0 deletions

View File

@ -698,6 +698,7 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) {
} }
iNew = 0; iNew = 0;
nNewCells = 0; nNewCells = 0;
tdbBtreeZeroPage(pNews[iNew], &iarg);
for (int iOld = 0; iOld < nOlds; iOld++) { for (int iOld = 0; iOld < nOlds; iOld++) {
SPage *pPage; SPage *pPage;
@ -735,6 +736,7 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) {
// move to next new page // move to next new page
iNew++; iNew++;
nNews = 0; nNews = 0;
tdbBtreeZeroPage(pNews[iNew], &iarg);
} }
} else { } else {
ASSERT(0); ASSERT(0);
@ -751,6 +753,7 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) {
// move to next new page // move to next new page
iNew++; iNew++;
nNewCells = 0; nNewCells = 0;
tdbBtreeZeroPage(pNews[iNew], &iarg);
} }
} }
} }