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

refact TDB

上级 da49669a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册