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

more TDB

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