提交 0db6b12a 编写于 作者: H Hongze Cheng

more tkv

上级 b4dee0f5
......@@ -13,4 +13,21 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "vnodeDef.h"
\ No newline at end of file
#ifndef _TD_TKV_BTREE_H_
#define _TD_TKV_BTREE_H_
#include "tkvDef.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
pgid_t root; // root page number
} STkvBtree;
#ifdef __cplusplus
}
#endif
#endif /*_TD_TKV_BTREE_H_*/
\ No newline at end of file
......@@ -16,12 +16,26 @@
#ifndef _TD_TKV_DB_H_
#define _TD_TKV_DB_H_
#include "tkvBtree.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
TDB_BTREE = 0,
TDB_HASH,
TDB_HEAP,
} tdb_db_t;
struct TDB {
// TODO
pgsize_t pageSize;
tdb_db_t type; // DB type
union {
STkvBtree btree;
} dbimpl;
};
#ifdef __cplusplus
......
......@@ -13,18 +13,21 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_VNODE_READ_H_
#define _TD_VNODE_READ_H_
#ifndef _TD_TKV_HAHS_H_
#define _TD_TKV_HAHS_H_
#include "tkvDef.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "vnodeInt.h"
void vnodeProcessReadMsg(SVnode *pVnode, SVnodeMsg *pMsg);
typedef struct STkvHash {
// TODO
} STkvHash;
#ifdef __cplusplus
}
#endif
#endif /*_TD_VNODE_READ_H_*/
#endif /*_TD_TKV_HAHS_H_*/
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册