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

more TDB

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