This commit is contained in:
Hongze Cheng 2022-02-15 11:50:15 +00:00
parent fb0b534074
commit 727db57799
1 changed files with 3 additions and 0 deletions

View File

@ -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)
// 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;
tdbEnvRgstDB(pEnv, pDb);