more TDB
This commit is contained in:
parent
fb0b534074
commit
727db57799
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue