提交 e534caef 编写于 作者: H hzcheng

more

上级 5d746c95
...@@ -9,6 +9,6 @@ ADD_SUBDIRECTORY(kit) ...@@ -9,6 +9,6 @@ ADD_SUBDIRECTORY(kit)
ADD_SUBDIRECTORY(plugins) ADD_SUBDIRECTORY(plugins)
ADD_SUBDIRECTORY(sdb) ADD_SUBDIRECTORY(sdb)
ADD_SUBDIRECTORY(mnode) ADD_SUBDIRECTORY(mnode)
ADD_SUBDIRECTORY(vnode)
ADD_SUBDIRECTORY(dnode) ADD_SUBDIRECTORY(dnode)
#ADD_SUBDIRECTORY(vnode)
#ADD_SUBDIRECTORY(connector/jdbc) #ADD_SUBDIRECTORY(connector/jdbc)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCE_LIST) aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCE_LIST)
message(STATUS "tsdb source files: ${SOURCE_LIST}")
add_library(tsdb STATIC ${SOURCE_LIST}) add_library(tsdb STATIC ${SOURCE_LIST})
target_link_libraries(tsdb common) target_link_libraries(tsdb common)
target_include_directories(tsdb PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc") target_include_directories(tsdb
\ No newline at end of file PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc"
PUBLIC "${CMAKE_SOURCE_DIR}/src/util/inc"
PUBLIC "${CMAKE_SOURCE_DIR}/src/os/linux/inc"
)
\ No newline at end of file
...@@ -14,5 +14,4 @@ SCacheHandle *tsdbCreateCache(int32_t numOfBlocks) { ...@@ -14,5 +14,4 @@ SCacheHandle *tsdbCreateCache(int32_t numOfBlocks) {
} }
int32_t tsdbFreeCache(SCacheHandle *pHandle) { int32_t tsdbFreeCache(SCacheHandle *pHandle) { return 0; }
} \ No newline at end of file
\ No newline at end of file
...@@ -159,6 +159,7 @@ tsdb_repo_t *tsdbOpenRepo(char *tsdbDir) { ...@@ -159,6 +159,7 @@ tsdb_repo_t *tsdbOpenRepo(char *tsdbDir) {
static int32_t tsdbFlushCache(STsdbRepo *pRepo) { static int32_t tsdbFlushCache(STsdbRepo *pRepo) {
// TODO // TODO
return 0;
} }
int32_t tsdbCloseRepo(tsdb_repo_t *repo) { int32_t tsdbCloseRepo(tsdb_repo_t *repo) {
...@@ -186,6 +187,7 @@ int32_t tsdbConfigRepo(tsdb_repo_t *repo, STsdbCfg *pCfg) { ...@@ -186,6 +187,7 @@ int32_t tsdbConfigRepo(tsdb_repo_t *repo, STsdbCfg *pCfg) {
STsdbRepoInfo *tsdbGetStatus(tsdb_repo_t *pRepo) { STsdbRepoInfo *tsdbGetStatus(tsdb_repo_t *pRepo) {
// TODO // TODO
return NULL;
} }
int32_t tsdbCreateTable(tsdb_repo_t *repo, STableCfg *pCfg) { int32_t tsdbCreateTable(tsdb_repo_t *repo, STableCfg *pCfg) {
...@@ -195,14 +197,17 @@ int32_t tsdbCreateTable(tsdb_repo_t *repo, STableCfg *pCfg) { ...@@ -195,14 +197,17 @@ int32_t tsdbCreateTable(tsdb_repo_t *repo, STableCfg *pCfg) {
int32_t tsdbAlterTable(tsdb_repo_t *pRepo, STableCfg *pCfg) { int32_t tsdbAlterTable(tsdb_repo_t *pRepo, STableCfg *pCfg) {
// TODO // TODO
return 0;
} }
STableInfo *tsdbGetTableInfo(tsdb_repo_t *pRepo, STableId tid, int32_t *error) { STableInfo *tsdbGetTableInfo(tsdb_repo_t *pRepo, STableId tid, int32_t *error) {
// TODO // TODO
return NULL;
} }
int32_t tsdbInsertData(tsdb_repo_t *pRepo, STableId tid, char *pData, int32_t *error) { int32_t tsdbInsertData(tsdb_repo_t *pRepo, STableId tid, char *pData, int32_t *error) {
// TODO // TODO
return 0;
} }
// Check the configuration and set default options // Check the configuration and set default options
...@@ -272,7 +277,7 @@ static int32_t tsdbDestroyRepoEnv(STsdbRepo *pRepo) { ...@@ -272,7 +277,7 @@ static int32_t tsdbDestroyRepoEnv(STsdbRepo *pRepo) {
static int tsdbOpenMetaFile(char *tsdbDir) { static int tsdbOpenMetaFile(char *tsdbDir) {
// TODO // TODO
return 0 return 0;
} }
static int tsdbRecoverRepo(int fd, STsdbCfg *pCfg) { static int tsdbRecoverRepo(int fd, STsdbCfg *pCfg) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册