This commit is contained in:
Hongze Cheng 2022-03-21 03:42:18 +00:00
parent 50aa291ff6
commit 03eaa648d6
1 changed files with 4 additions and 1 deletions

View File

@ -385,6 +385,9 @@ static int tdbBtreeInitPage(SPage *pPage, void *arg) {
pBt = (SBTree *)arg;
ASSERT(0);
// TODO: here has problem
flags = TDB_PAGE_FLAGS(pPage);
isLeaf = TDB_BTREE_PAGE_IS_LEAF(flags);
if (isLeaf) {
@ -430,8 +433,8 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
}
pPage->xCellSize = NULL; // TODO
TDB_PAGE_FLAGS_SET(pPage, flags);
tdbPageZero(pPage, szAmHdr);
TDB_PAGE_FLAGS_SET(pPage, flags);
if (isLeaf) {
pPage->kLen = pBt->keyLen;