提交 03eaa648 编写于 作者: H Hongze Cheng

more TDB

上级 50aa291f
...@@ -385,6 +385,9 @@ static int tdbBtreeInitPage(SPage *pPage, void *arg) { ...@@ -385,6 +385,9 @@ static int tdbBtreeInitPage(SPage *pPage, void *arg) {
pBt = (SBTree *)arg; pBt = (SBTree *)arg;
ASSERT(0);
// TODO: here has problem
flags = TDB_PAGE_FLAGS(pPage); flags = TDB_PAGE_FLAGS(pPage);
isLeaf = TDB_BTREE_PAGE_IS_LEAF(flags); isLeaf = TDB_BTREE_PAGE_IS_LEAF(flags);
if (isLeaf) { if (isLeaf) {
...@@ -430,8 +433,8 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) { ...@@ -430,8 +433,8 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
} }
pPage->xCellSize = NULL; // TODO pPage->xCellSize = NULL; // TODO
TDB_PAGE_FLAGS_SET(pPage, flags);
tdbPageZero(pPage, szAmHdr); tdbPageZero(pPage, szAmHdr);
TDB_PAGE_FLAGS_SET(pPage, flags);
if (isLeaf) { if (isLeaf) {
pPage->kLen = pBt->keyLen; pPage->kLen = pBt->keyLen;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册