more TDB
This commit is contained in:
parent
9c2f84b0eb
commit
8702b2a996
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue