提交 9c810202 编写于 作者: H Hongze Cheng

more TDB

上级 ad0e3a00
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册