Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
c8ecafed
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c8ecafed
编写于
7月 20, 2021
作者:
T
tickduan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Set global var VAR_TSZ fixed build error
上级
e46f6720
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
20 addition
and
15 deletion
+20
-15
cmake/input.inc
cmake/input.inc
+7
-4
deps/CMakeLists.txt
deps/CMakeLists.txt
+3
-5
deps/TSZ
deps/TSZ
+1
-1
src/client/CMakeLists.txt
src/client/CMakeLists.txt
+1
-1
src/kit/taospack/CMakeLists.txt
src/kit/taospack/CMakeLists.txt
+1
-1
src/util/CMakeLists.txt
src/util/CMakeLists.txt
+2
-1
src/util/src/tcompression.c
src/util/src/tcompression.c
+5
-2
未找到文件。
cmake/input.inc
浏览文件 @
c8ecafed
...
...
@@ -92,8 +92,11 @@ IF (${MEMORY_SANITIZER} MATCHES "true")
SET
(
TD_MEMORY_SANITIZER
TRUE
)
ENDIF
()
IF
(
$
{
TSZ_
DIS
ABLED
}
MATCHES
"true"
)
MESSAGE
(
STATUS
"build with TSZ disabled"
)
ELSE
(
)
IF
(
$
{
TSZ_
EN
ABLED
}
MATCHES
"true"
)
# define add
MESSAGE
(
STATUS
"build with TSZ enabled"
)
ADD_DEFINITIONS
(
-
DTD_TSZ
)
ENDIF
()
set
(
VAR_TSZ
"TSZ"
CACHE
INTERNAL
"global variant tsz"
)
ELSE
()
set
(
VAR_TSZ
"errTSZ"
CACHE
INTERNAL
"global variant empty"
)
ENDIF
()
deps/CMakeLists.txt
浏览文件 @
c8ecafed
...
...
@@ -38,8 +38,6 @@ IF (TD_LINUX_64 AND JEMALLOC_ENABLED)
)
ENDIF
()
IF
(
TD_TSZ
)
MESSAGE
(
"TSZ module set disabled."
)
ELSE
()
IF
(
${
TSZ_ENABLED
}
MATCHES
"true"
)
ADD_SUBDIRECTORY
(
TSZ
)
ENDIF
()
\ No newline at end of file
TSZ
@
0ca5b15a
比较
18bc74ce
...
0ca5b15a
Subproject commit
18bc74ce5bf206dfe8aba451dde615012bbec649
Subproject commit
0ca5b15a8eac40327dd737be52c926fa5675712c
src/client/CMakeLists.txt
浏览文件 @
c8ecafed
...
...
@@ -11,7 +11,7 @@ IF (TD_LINUX)
# set the static lib name
ADD_LIBRARY
(
taos_static STATIC
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
taos_static common query trpc tutil pthread m rt
SZ
)
TARGET_LINK_LIBRARIES
(
taos_static common query trpc tutil pthread m rt
${
VAR_TSZ
}
)
SET_TARGET_PROPERTIES
(
taos_static PROPERTIES OUTPUT_NAME
"taos_static"
)
SET_TARGET_PROPERTIES
(
taos_static PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
...
...
src/kit/taospack/CMakeLists.txt
浏览文件 @
c8ecafed
...
...
@@ -8,7 +8,7 @@ INCLUDE_DIRECTORIES(inc)
IF
(
TD_LINUX
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_EXECUTABLE
(
taospack
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
taospack os tutil tsdb
SZ
)
TARGET_LINK_LIBRARIES
(
taospack os tutil tsdb
${
VAR_TSZ
}
)
ELSEIF
(
TD_WINDOWS
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_EXECUTABLE
(
taospack
${
SRC
}
)
...
...
src/util/CMakeLists.txt
浏览文件 @
c8ecafed
...
...
@@ -7,7 +7,8 @@ INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/rmonotonic/inc)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/SZ/sz/include
)
AUX_SOURCE_DIRECTORY
(
src SRC
)
ADD_LIBRARY
(
tutil
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
tutil pthread os lz4 z rmonotonic SZ
)
TARGET_LINK_LIBRARIES
(
tutil pthread os lz4 z rmonotonic
${
VAR_TSZ
}
)
...
...
src/util/src/tcompression.c
浏览文件 @
c8ecafed
...
...
@@ -50,7 +50,7 @@
#include "os.h"
#include "lz4.h"
#ifdef TD_TSZ
#include "td_sz.h"
#include "
../../../deps/TSZ/sz/include/
td_sz.h"
#endif
#include "taosdef.h"
#include "tscompression.h"
...
...
@@ -86,7 +86,10 @@ int tsCompressInit(){
return
0
;
tdszInit
(
fPrecision
,
dPrecision
,
maxIntervals
,
intervals
,
Compressor
);
uInfo
(
"lossy compression is opened. columns = %s
\n
"
,
lossyColumns
);
if
(
lossyFloat
)
uInfo
(
"lossy compression float is opened.
\n
"
);
if
(
lossyDouble
)
uInfo
(
"lossy compression double is opened.
\n
"
);
return
1
;
}
// exit call
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录