提交 3347de54 编写于 作者: H Hongze Cheng

refact

上级 3908cbd3
...@@ -24,16 +24,32 @@ extern "C" { ...@@ -24,16 +24,32 @@ extern "C" {
typedef struct STsdb STsdb; typedef struct STsdb STsdb;
typedef struct { typedef struct {
int32_t id; // TODO: use a global definition
int32_t days;
int32_t keep;
int32_t keep1;
int32_t keep2;
int32_t minRows;
int32_t maxRows;
int8_t precision;
int8_t update;
} STsdbCfg; } STsdbCfg;
int tsdbInit(int nthreads); // Module init and clear
int tsdbInit();
int tsdbClear(); int tsdbClear();
// Repository operations
int tsdbCreateRepo(int id); int tsdbCreateRepo(int id);
int tsdbDropRepo(int id); int tsdbDropRepo(int id);
STsdb *tsdbOpenRepo(STsdbCfg *pCfg); STsdb *tsdbOpenRepo(STsdbCfg *pCfg);
int tsdbCloseRepo(STsdb *pTsdb); int tsdbCloseRepo(STsdb *pTsdb);
int tsdbForceCloseRepo(STsdb *pTsdb); int tsdbForceCloseRepo(STsdb *pTsdb);
// Data commit
int tsdbInsert(STsdb *pTsdb, SSubmitMsg *pMsg);
int tsdbCommit(STsdb *pTsdb);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -5,3 +5,7 @@ target_include_directories( ...@@ -5,3 +5,7 @@ target_include_directories(
PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode/tsdb" PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode/tsdb"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_include_directories(
tsdb
PRIVATE os
)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册