提交 8702b2a9 编写于 作者: H Hongze Cheng

more TDB

上级 9c2f84b0
......@@ -352,7 +352,7 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
pBt = ((SBtreeZeroPageArg *)arg)->pBt;
pPage->pPageHdr = (SPageHdr *)pPage->pData;
pPage->aCellIdx = (u16 *)(&(pPage->pPageHdr[1]));
pPage->aCellIdx = (u8 *)(&(pPage->pPageHdr[1]));
// Init the page header
pPage->pPageHdr->flags = flags;
......@@ -384,7 +384,7 @@ static int tdbBtreeInitPage(SPage *pPage, void *arg) {
pBt = (SBTree *)arg;
pPage->pPageHdr = (SPageHdr *)pPage->pData;
pPage->aCellIdx = (u16 *)(&(pPage->pPageHdr[1]));
pPage->aCellIdx = (u8 *)(&(pPage->pPageHdr[1]));
TDB_BTREE_ASSERT_FLAG(pPage->pPageHdr->flags);
......
......@@ -44,7 +44,7 @@ struct SPage {
SPgid pgid;
SPageHdr *pPageHdr;
SPageFtr *pPageFtr;
u16 *aCellIdx;
u8 *aCellIdx;
u8 *pFreeStart;
u8 *pFreeEnd;
int kLen;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册