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

@ -22,7 +22,7 @@ extern "C" {
typedef struct SBTree SBTree; typedef struct SBTree SBTree;
typedef struct SBtCursor SBtCursor; typedef struct SBtCursor SBtCursor;
typedef struct SBtPage SBtPage; typedef struct SBtPage SBtPage;
struct SBtCursor { struct SBtCursor {
SBTree * pBt; SBTree * pBt;

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;