提交 41bce71c 编写于 作者: H Hongze Cheng

more TDB

上级 4c96020c
......@@ -48,7 +48,7 @@ int tdbEnvOpen(const char *rootDir, int pageSize, int cacheSize, STEnv **ppEnv)
pEnv->jfd = -1;
ret = tdbPCacheOpen(pageSize, cacheSize, 0, &(pEnv->pCache));
ret = tdbPCacheOpen(pageSize, cacheSize, sizeof(SPageHandle), &(pEnv->pCache));
if (ret < 0) {
return -1;
}
......
......@@ -22,7 +22,7 @@ extern "C" {
typedef struct SBTree SBTree;
typedef struct SBtCursor SBtCursor;
typedef struct SBtPage SBtPage;
typedef struct SBtPage SBtPage;
struct SBtCursor {
SBTree * pBt;
......
......@@ -29,6 +29,7 @@ typedef struct __attribute__((__packed__)) {
} SPageHdr;
typedef struct {
void * pData;
SPageHdr *pPageHdr;
void * pAMHdr;
u16 * aCellIdx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册