提交 1fba9d5d 编写于 作者: H Hongze Cheng

more TDB

上级 2bb84eeb
...@@ -735,9 +735,11 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) { ...@@ -735,9 +735,11 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) {
// move to next new page // move to next new page
iNew++; iNew++;
nNews = 0; nNewCells = 0;
if (iNew < nNews) {
tdbBtreeZeroPage(pNews[iNew], &iarg); tdbBtreeZeroPage(pNews[iNew], &iarg);
} }
}
} else { } else {
ASSERT(0); ASSERT(0);
ASSERT(childNotLeaf); ASSERT(childNotLeaf);
...@@ -753,10 +755,12 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) { ...@@ -753,10 +755,12 @@ 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;
if (iNew < nNews) {
tdbBtreeZeroPage(pNews[iNew], &iarg); tdbBtreeZeroPage(pNews[iNew], &iarg);
} }
} }
} }
}
for (int i = 0; i < nOlds; i++) { for (int i = 0; i < nOlds; i++) {
tdbPageDestroy(pOldsCopy[i], NULL, NULL); tdbPageDestroy(pOldsCopy[i], NULL, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册