提交 74f73e6b 编写于 作者: H Hongze Cheng

more TDB

上级 da7851f2
...@@ -66,12 +66,21 @@ int btreeClose(SBTree *pBt) { ...@@ -66,12 +66,21 @@ int btreeClose(SBTree *pBt) {
} }
static int btreeCreate(SBTree **pBt) { static int btreeCreate(SBTree **pBt) {
SBTree *pBt;
pBt = (SBTree *)calloc(1, sizeof(*pBt));
if (pBt == NULL) {
return -1;
}
// TODO // TODO
return 0; return 0;
} }
static int btreeDestroy(SBTree *pBt) { static int btreeDestroy(SBTree *pBt) {
// TODO if (pBt) {
free(pBt);
}
return 0; return 0;
} }
......
...@@ -34,7 +34,7 @@ int btreeCursorMoveTo(SBtCursor *pBtCur, int kLen, const void *pKey); ...@@ -34,7 +34,7 @@ int btreeCursorMoveTo(SBtCursor *pBtCur, int kLen, const void *pKey);
int btreeCursorNext(SBtCursor *pBtCur); int btreeCursorNext(SBtCursor *pBtCur);
struct SBTree { struct SBTree {
pgno_t root; pgno_t root;
}; };
#ifdef __cplusplus #ifdef __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册