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

more TDB

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