This commit is contained in:
Hongze Cheng 2022-03-01 09:20:23 +00:00
parent 4c96020cb2
commit 41bce71cb8
3 changed files with 3 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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;