This commit is contained in:
Hongze Cheng 2022-03-21 03:29:39 +00:00
parent cde7a7c6a1
commit 50aa291ff6
1 changed files with 1 additions and 3 deletions

View File

@ -423,9 +423,6 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
pBt = ((SBtreeZeroPageArg *)arg)->pBt;
isLeaf = TDB_BTREE_PAGE_IS_LEAF(flags);
// Init the page header
TDB_PAGE_FLAGS_SET(pPage, flags);
// Set szAmHdr
if (isLeaf) {
szAmHdr = 0;
} else {
@ -433,6 +430,7 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
}
pPage->xCellSize = NULL; // TODO
TDB_PAGE_FLAGS_SET(pPage, flags);
tdbPageZero(pPage, szAmHdr);
if (isLeaf) {