未验证 提交 20078022 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #10339 from taosdata/feature/TS-1220-V24

[TS-1220]<feature><tsdb>: add TSZ to default build
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
[submodule "deps/TSZ"] [submodule "deps/TSZ"]
path = deps/TSZ path = deps/TSZ
url = https://github.com/taosdata/TSZ.git url = https://github.com/taosdata/TSZ.git
branch = master
[submodule "src/kit/taos-tools"] [submodule "src/kit/taos-tools"]
path = src/kit/taos-tools path = src/kit/taos-tools
url = https://github.com/taosdata/taos-tools url = https://github.com/taosdata/taos-tools
......
...@@ -96,11 +96,12 @@ IF (${VERBOSE} MATCHES "true") ...@@ -96,11 +96,12 @@ IF (${VERBOSE} MATCHES "true")
SET(TD_BUILD_VERBOSE TRUE) SET(TD_BUILD_VERBOSE TRUE)
ENDIF () ENDIF ()
IF (${TSZ_ENABLED} MATCHES "true") # build TSZ by default
# define add IF ("${TSZ_ENABLED}" MATCHES "false")
set(VAR_TSZ "" CACHE INTERNAL "global variant empty" )
ELSE()
# define add
MESSAGE(STATUS "build with TSZ enabled") MESSAGE(STATUS "build with TSZ enabled")
ADD_DEFINITIONS(-DTD_TSZ) ADD_DEFINITIONS(-DTD_TSZ)
set(VAR_TSZ "TSZ" CACHE INTERNAL "global variant tsz" ) set(VAR_TSZ "TSZ" CACHE INTERNAL "global variant tsz" )
ELSE() ENDIF()
set(VAR_TSZ "" CACHE INTERNAL "global variant empty" ) \ No newline at end of file
ENDIF()
...@@ -45,6 +45,6 @@ IF (TD_LINUX_64 AND JEMALLOC_ENABLED) ...@@ -45,6 +45,6 @@ IF (TD_LINUX_64 AND JEMALLOC_ENABLED)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/build/include) INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/build/include)
ENDIF () ENDIF ()
IF (${TSZ_ENABLED} MATCHES "true") IF (NOT "${TSZ_ENABLED}" MATCHES "false")
ADD_SUBDIRECTORY(TSZ) ADD_SUBDIRECTORY(TSZ)
ENDIF() ENDIF()
Subproject commit 11c1060d4f917dd799ae628b131db5d6a5ef6954
...@@ -1800,9 +1800,10 @@ static void doInitGlobalConfig(void) { ...@@ -1800,9 +1800,10 @@ static void doInitGlobalConfig(void) {
cfg.ptrLength = 0; cfg.ptrLength = 0;
cfg.unitType = TAOS_CFG_UTYPE_NONE; cfg.unitType = TAOS_CFG_UTYPE_NONE;
taosInitConfigOption(cfg); taosInitConfigOption(cfg);
assert(tsGlobalConfigNum < TSDB_CFG_MAX_NUM); assert(tsGlobalConfigNum == TSDB_CFG_MAX_NUM);
#else #else
assert(tsGlobalConfigNum < TSDB_CFG_MAX_NUM); // if TD_TSZ macro define, have 5 count configs, so must add 5
assert(tsGlobalConfigNum + 5 == TSDB_CFG_MAX_NUM);
#endif #endif
} }
......
...@@ -704,7 +704,7 @@ void leakFloat() { ...@@ -704,7 +704,7 @@ void leakFloat() {
void leakTest(){ void leakTest(){
for(int i=0; i< 90000000000000; i++){ for(int i=0; i< 90000000; i++){
if(i%10000==0) if(i%10000==0)
printf(" ---------- %d ---------------- \n", i); printf(" ---------- %d ---------------- \n", i);
leakFloat(); leakFloat();
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
extern "C" { extern "C" {
#endif #endif
#define TSDB_CFG_MAX_NUM 131 #define TSDB_CFG_MAX_NUM 132
#define TSDB_CFG_PRINT_LEN 23 #define TSDB_CFG_PRINT_LEN 23
#define TSDB_CFG_OPTION_LEN 24 #define TSDB_CFG_OPTION_LEN 24
#define TSDB_CFG_VALUE_LEN 41 #define TSDB_CFG_VALUE_LEN 41
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册