more
This commit is contained in:
parent
5d746c9542
commit
e534caefff
|
@ -9,6 +9,6 @@ ADD_SUBDIRECTORY(kit)
|
|||
ADD_SUBDIRECTORY(plugins)
|
||||
ADD_SUBDIRECTORY(sdb)
|
||||
ADD_SUBDIRECTORY(mnode)
|
||||
ADD_SUBDIRECTORY(vnode)
|
||||
ADD_SUBDIRECTORY(dnode)
|
||||
#ADD_SUBDIRECTORY(vnode)
|
||||
#ADD_SUBDIRECTORY(connector/jdbc)
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCE_LIST)
|
||||
|
||||
message(STATUS "tsdb source files: ${SOURCE_LIST}")
|
||||
|
||||
add_library(tsdb STATIC ${SOURCE_LIST})
|
||||
|
||||
target_link_libraries(tsdb common)
|
||||
|
||||
target_include_directories(tsdb PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc")
|
||||
target_include_directories(tsdb
|
||||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc"
|
||||
PUBLIC "${CMAKE_SOURCE_DIR}/src/util/inc"
|
||||
PUBLIC "${CMAKE_SOURCE_DIR}/src/os/linux/inc"
|
||||
)
|
|
@ -14,5 +14,4 @@ SCacheHandle *tsdbCreateCache(int32_t numOfBlocks) {
|
|||
|
||||
}
|
||||
|
||||
int32_t tsdbFreeCache(SCacheHandle *pHandle) {
|
||||
}
|
||||
int32_t tsdbFreeCache(SCacheHandle *pHandle) { return 0; }
|
|
@ -159,6 +159,7 @@ tsdb_repo_t *tsdbOpenRepo(char *tsdbDir) {
|
|||
|
||||
static int32_t tsdbFlushCache(STsdbRepo *pRepo) {
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t tsdbCloseRepo(tsdb_repo_t *repo) {
|
||||
|
@ -186,6 +187,7 @@ int32_t tsdbConfigRepo(tsdb_repo_t *repo, STsdbCfg *pCfg) {
|
|||
|
||||
STsdbRepoInfo *tsdbGetStatus(tsdb_repo_t *pRepo) {
|
||||
// TODO
|
||||
return NULL;
|
||||
}
|
||||
|
||||
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) {
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
STableInfo *tsdbGetTableInfo(tsdb_repo_t *pRepo, STableId tid, int32_t *error) {
|
||||
// TODO
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int32_t tsdbInsertData(tsdb_repo_t *pRepo, STableId tid, char *pData, int32_t *error) {
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Check the configuration and set default options
|
||||
|
@ -272,7 +277,7 @@ static int32_t tsdbDestroyRepoEnv(STsdbRepo *pRepo) {
|
|||
|
||||
static int tsdbOpenMetaFile(char *tsdbDir) {
|
||||
// TODO
|
||||
return 0
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int tsdbRecoverRepo(int fd, STsdbCfg *pCfg) {
|
||||
|
|
Loading…
Reference in New Issue