diff --git a/source/libs/tdb/src/db/tdb.c b/source/libs/tdb/src/db/tdb.c index 9fe15ce156445c20675f075846fdbd93ef3a42c3..0059fba1918359d8e06c99d108002bfb54f66a58 100644 --- a/source/libs/tdb/src/db/tdb.c +++ b/source/libs/tdb/src/db/tdb.c @@ -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);