提交 24e51adb 编写于 作者: H Hongze Cheng

more

上级 c981b72f
......@@ -49,16 +49,6 @@ int tdbDbOpen(const char *fname, int keyLen, int valLen, FKeyComparator keyCmprF
ASSERT(pPager != NULL);
// Try to open the database
ret = tdbPagerOpenDB(pPager, &pgno, true);
if (ret < 0) {
return -1;
}
if (pgno == 0) {
// TODO: Try to create a new database
}
// pDb->pBt
ret = tdbBtreeOpen(pgno, keyLen, valLen, pPager, keyCmprFn, &(pDb->pBt));
if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册