提交 698377b8 编写于 作者: H Hongze Cheng

refact TDB

上级 da49669a
...@@ -59,8 +59,6 @@ int tdbEnvCreate(TENV **ppEnv, const char *rootDir) { ...@@ -59,8 +59,6 @@ int tdbEnvCreate(TENV **ppEnv, const char *rootDir) {
int tdbEnvOpen(TENV *pEnv) { int tdbEnvOpen(TENV *pEnv) {
SPgCache *pPgCache; SPgCache *pPgCache;
pgsz_t pgSize;
int npage;
int ret; int ret;
ASSERT(pEnv != NULL); ASSERT(pEnv != NULL);
...@@ -70,8 +68,6 @@ int tdbEnvOpen(TENV *pEnv) { ...@@ -70,8 +68,6 @@ int tdbEnvOpen(TENV *pEnv) {
*/ */
mkdir(pEnv->rootDir, 0755); mkdir(pEnv->rootDir, 0755);
pgSize = pEnv->pgSize;
npage = pEnv->cacheSize / pEnv->pgSize;
ret = pgCacheOpen(&pPgCache, pEnv); ret = pgCacheOpen(&pPgCache, pEnv);
if (ret != 0) { if (ret != 0) {
goto _err; goto _err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册