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