This commit is contained in:
Hongze Cheng 2022-03-21 06:46:37 +00:00
parent ad0e3a007b
commit 9c8102027f
1 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
tdbPageZero(pPage, isLeaf ? sizeof(SLeafHdr) : sizeof(SIntHdr), tdbBtreeCellSize);
if (isLeaf) {
SLeafHdr *pLeafHdr = (SLeafHdr *)(pPage->pPageHdr);
SLeafHdr *pLeafHdr = (SLeafHdr *)(pPage->pAmHdr);
pLeafHdr->flags = flags;
pPage->kLen = pBt->keyLen;
@ -438,7 +438,7 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
pPage->maxLocal = pBt->maxLeaf;
pPage->minLocal = pBt->minLeaf;
} else {
SIntHdr *pIntHdr = (SIntHdr *)(pPage->pPageHdr);
SIntHdr *pIntHdr = (SIntHdr *)(pPage->pAmHdr);
pIntHdr->flags = flags;
pIntHdr->pgno = 0;