提交 727db577 编写于 作者: H Hongze Cheng

more TDB

上级 fb0b5340
...@@ -104,6 +104,9 @@ int tdbOpen(TDB *pDb, const char *fname, const char *dbname, TENV *pEnv) { ...@@ -104,6 +104,9 @@ int tdbOpen(TDB *pDb, const char *fname, const char *dbname, TENV *pEnv) {
} }
// TODO: open the database (an existing or a new one) // TODO: open the database (an existing or a new one)
// Search the page file master DB to check if the db exists
// If DB exists, get the root page number
// If DB not exists, create a new DB
pDb->pPgFile = pPgFile; pDb->pPgFile = pPgFile;
tdbEnvRgstDB(pEnv, pDb); tdbEnvRgstDB(pEnv, pDb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册