refact TDB

This commit is contained in:
Hongze Cheng 2022-02-15 07:38:26 +00:00
parent da49669a2b
commit 698377b830
1 changed files with 0 additions and 4 deletions

View File

@ -59,8 +59,6 @@ int tdbEnvCreate(TENV **ppEnv, const char *rootDir) {
int tdbEnvOpen(TENV *pEnv) {
SPgCache *pPgCache;
pgsz_t pgSize;
int npage;
int ret;
ASSERT(pEnv != NULL);
@ -70,8 +68,6 @@ int tdbEnvOpen(TENV *pEnv) {
*/
mkdir(pEnv->rootDir, 0755);
pgSize = pEnv->pgSize;
npage = pEnv->cacheSize / pEnv->pgSize;
ret = pgCacheOpen(&pPgCache, pEnv);
if (ret != 0) {
goto _err;