more
This commit is contained in:
parent
7be2d80ba2
commit
a4cc355f6c
|
@ -28,11 +28,11 @@ struct SBtCursor {
|
|||
int8_t iPage;
|
||||
};
|
||||
|
||||
typedef struct SBPage {
|
||||
typedef struct SMemPage {
|
||||
u8 isInit;
|
||||
u8 isLeaf;
|
||||
SPgno pgno;
|
||||
} SBPage;
|
||||
} SMemPage;
|
||||
|
||||
int tdbBtreeOpen(SPgno root, SBTree **ppBt) {
|
||||
*ppBt = NULL;
|
||||
|
|
|
@ -77,6 +77,9 @@ SPgHdr *tdbPFileGet(SPFile *pFile, SPgno pgno) {
|
|||
SPgid pgid;
|
||||
SPgHdr *pPage;
|
||||
|
||||
memcpy(pgid.fileid, pFile->fid, TDB_FILE_ID_LEN);
|
||||
pgid.pgno = pgno;
|
||||
|
||||
pPage = tdbPCacheFetch(pFile->pCache, &pgid, 1);
|
||||
if (pPage == NULL) {
|
||||
// TODO
|
||||
|
|
Loading…
Reference in New Issue