提交 a4cc355f 编写于 作者: H Hongze Cheng

more

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