mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* feat: add xnode syntax * refactor(xnode): reduce function complexity * chore: add lost xnode.h file * feat(xnode): create xnode task * chore: fix double free error * add xnoded * start xnoded as subprocess * complete xnode task feature * complete show xnode jobs feature * complete with option feature * complete alter xnode job feature * complete alter xnode task feature * complete user pass feature * clean code * modify status type as char * fix leader ep null * fix start task req null * fix pass id for status * support timeout msg * drop xnode task relative jobs * clean code * wip * chore: add test cases for xnode * chore: fix 3.0 merge changes * fix drain core dump and create task core dump * add password check * retrieve xnode status from xnoded * pass integer as double to cjson * add some debug log * add some job log * fix start task lock * do not handle http response * fix coredump drop xnode task by name * support start/stop/drop task by name * remove mock xnoded * support unix socket * kill pre-xnoded before start * support dnode close xnoded * test(xnode): add unit test cases for xnode * rebalance support where clause * fix some test issue * unformat http post content json string * add xnode zh doc * modify drain description * remove job create/stop/drop operation * support rebalance all without where condition * support alter task by name * add NULL param for mndCheckOperPrivilege * add xnode txnode module for libmnode.a * code clean * change parser len to 4096 * clean code * chore: try to fix gtest/gtest.h not found * chore: fix markdown files * chore: fix markdown in zh * chore: fix enum issue and add ci * chore: fix test case problem * chore: fix pKeyVal overflow * chore: rename to 排空节点 * chore: external cmake remove parallel * chore: add DEP_ext_gtest for xnode test * chore: fix gtest errors * chore: remove gtest pthread lib * chore: fix data type not match * chore: fix some lint errors * chore: fix void unlink * chore: fix return with null pointer check * chore: fix pointer double free and xnodeMemoryTest strncpy null * chore: fix xnode encode action invalid datelen * chore: remove TD_LINUX condition * chore: use PRIu64 denote long long * chore: fix task parser NULL and allow no with clause * fix(xnode): fix windows build error * chore: fix windows curl error * chore: fix test case ins_tables relative error * chore: fix memory leak * docs: update taosx docs * chore: update taosx docs * chore: add role priviledge table * chore: fix error code doc * chore: fix test_xnode.py * chore: fix doc typo * fix: ci error while run test_user_privilege_sysinfo.py --------- Co-authored-by: Linhe Huo <linhehuo@gmail.com> Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: Simon Guan <guanshengliang@qq.com>
61 lines
1.7 KiB
CMake
Executable file
61 lines
1.7 KiB
CMake
Executable file
aux_source_directory(src MNODE_SRC)
|
|
|
|
if(TD_PRIVILEGE)
|
|
ADD_DEFINITIONS(-D_PRIVILEGE)
|
|
endif()
|
|
|
|
if(TD_ENTERPRISE)
|
|
LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/privilege/src/privilege.c)
|
|
LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/mnode/src/mndDb.c)
|
|
LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/mnode/src/mndVgroup.c)
|
|
LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/mnode/src/mndDnode.c)
|
|
LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/view/src/mndView.c)
|
|
LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/mnode/src/mndMount.c)
|
|
LIST(APPEND MNODE_SRC ${TD_ENTERPRISE_DIR}/src/plugins/token/src/mndTokenImpl.c)
|
|
|
|
if(${BUILD_WITH_S3})
|
|
add_definitions(-DUSE_S3)
|
|
ELSEIF(${BUILD_WITH_COS})
|
|
add_definitions(-DUSE_COS)
|
|
endif()
|
|
endif()
|
|
|
|
if(${BUILD_WITH_ANALYSIS})
|
|
add_definitions(-DUSE_ANALYTICS)
|
|
endif()
|
|
|
|
add_library(mnode STATIC ${MNODE_SRC})
|
|
target_include_directories(
|
|
mnode
|
|
PUBLIC
|
|
"${TD_SOURCE_DIR}/include/dnode/mnode"
|
|
"${TD_SOURCE_DIR}/include/dnode/mgmt"
|
|
"${TD_SOURCE_DIR}/include/dnode/xnode"
|
|
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
|
|
PUBLIC "${TD_SOURCE_DIR}/source/libs/totp/inc"
|
|
"${TD_SOURCE_DIR}/include/libs/txnode/inc"
|
|
PRIVATE "${TD_ENTERPRISE_DIR}/src/plugins/privilege/inc"
|
|
)
|
|
|
|
if(TD_ENTERPRISE)
|
|
target_include_directories(
|
|
mnode
|
|
PRIVATE "${TD_ENTERPRISE_DIR}/src/plugins/taosk/inc"
|
|
)
|
|
endif()
|
|
target_link_libraries(
|
|
mnode scheduler sdb wal transport sync monitor executor qworker new-stream parser audit monitorfw totp xnode txnode
|
|
)
|
|
|
|
if(DEFINED GRANT_CFG_INCLUDE_DIR)
|
|
add_definitions(-DGRANTS_CFG)
|
|
endif()
|
|
|
|
if(TD_GRANT)
|
|
TARGET_LINK_LIBRARIES(mnode grant)
|
|
ADD_DEFINITIONS(-D_GRANT)
|
|
endif()
|
|
|
|
if(${BUILD_TEST})
|
|
add_subdirectory(test)
|
|
endif(${BUILD_TEST})
|