Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
3f464048
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3f464048
编写于
8月 16, 2022
作者:
S
Shengliang Guan
提交者:
GitHub
8月 16, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16151 from taosdata/release/ver-3.0.0.0
Release/ver 3.0.0.0
上级
13ed3771
45cc2a67
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
102 addition
and
225 deletion
+102
-225
cmake/cmake.define
cmake/cmake.define
+7
-1
contrib/CMakeLists.txt
contrib/CMakeLists.txt
+1
-1
packaging/cfg/taos.cfg
packaging/cfg/taos.cfg
+75
-218
packaging/deb/DEBIAN/prerm
packaging/deb/DEBIAN/prerm
+1
-0
packaging/deb/makedeb.sh
packaging/deb/makedeb.sh
+1
-0
packaging/rpm/tdengine.spec
packaging/rpm/tdengine.spec
+2
-0
packaging/tools/install.sh
packaging/tools/install.sh
+4
-1
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+2
-1
packaging/tools/post.sh
packaging/tools/post.sh
+2
-0
packaging/tools/tdengine.iss
packaging/tools/tdengine.iss
+1
-1
source/os/src/osRand.c
source/os/src/osRand.c
+6
-2
未找到文件。
cmake/cmake.define
浏览文件 @
3f464048
...
@@ -81,7 +81,7 @@ ENDIF ()
...
@@ -81,7 +81,7 @@ ENDIF ()
IF (TD_WINDOWS)
IF (TD_WINDOWS)
MESSAGE("${Yellow} set compiler flag for Windows! ${ColourReset}")
MESSAGE("${Yellow} set compiler flag for Windows! ${ColourReset}")
SET(COMMON_FLAGS "/w /D_WIN32 /DWIN32 /Zi")
SET(COMMON_FLAGS "/w /D_WIN32 /DWIN32 /Zi
/MTd
")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
# IF (MSVC AND (MSVC_VERSION GREATER_EQUAL 1900))
# IF (MSVC AND (MSVC_VERSION GREATER_EQUAL 1900))
# SET(COMMON_FLAGS "${COMMON_FLAGS} /Wv:18")
# SET(COMMON_FLAGS "${COMMON_FLAGS} /Wv:18")
...
@@ -92,6 +92,12 @@ IF (TD_WINDOWS)
...
@@ -92,6 +92,12 @@ IF (TD_WINDOWS)
IF (CMAKE_DEPFILE_FLAGS_CXX)
IF (CMAKE_DEPFILE_FLAGS_CXX)
SET(CMAKE_DEPFILE_FLAGS_CXX "")
SET(CMAKE_DEPFILE_FLAGS_CXX "")
ENDIF ()
ENDIF ()
IF (CMAKE_C_FLAGS_DEBUG)
SET(CMAKE_C_FLAGS_DEBUG "" CACHE STRING "" FORCE)
ENDIF ()
IF (CMAKE_CXX_FLAGS_DEBUG)
SET(CMAKE_CXX_FLAGS_DEBUG "" CACHE STRING "" FORCE)
ENDIF ()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_FLAGS}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_FLAGS}")
...
...
contrib/CMakeLists.txt
浏览文件 @
3f464048
...
@@ -273,7 +273,7 @@ endif(${BUILD_WITH_NURAFT})
...
@@ -273,7 +273,7 @@ endif(${BUILD_WITH_NURAFT})
# pthread
# pthread
if
(
${
BUILD_PTHREAD
}
)
if
(
${
BUILD_PTHREAD
}
)
set
(
CMAKE_BUILD_TYPE
release
)
set
(
CMAKE_BUILD_TYPE
debug
)
add_definitions
(
-DPTW32_STATIC_LIB
)
add_definitions
(
-DPTW32_STATIC_LIB
)
add_subdirectory
(
pthread EXCLUDE_FROM_ALL
)
add_subdirectory
(
pthread EXCLUDE_FROM_ALL
)
set_target_properties
(
libpthreadVC3 PROPERTIES OUTPUT_NAME pthread
)
set_target_properties
(
libpthreadVC3 PROPERTIES OUTPUT_NAME pthread
)
...
...
packaging/cfg/taos.cfg
浏览文件 @
3f464048
...
@@ -5,217 +5,97 @@
...
@@ -5,217 +5,97 @@
# #
# #
########################################################
########################################################
#
first fully qualified domain name (FQDN) for TDengine system
#
The end point of the first dnode in the cluster to be connected to when `taosd` or `taos` is started
# firstEp hostname:6030
# firstEp hostname:6030
# local fully qualified domain name (FQDN)
# The end point of the second dnode to be connected to if the firstEp is not available when `taosd` or `taos` is started
# secondEp
# The FQDN of the host where `taosd` will be started. It can be IP address
# fqdn hostname
# fqdn hostname
#
first port number for the connection (12 continuous UDP/TCP port number are used)
#
The port for external access after `taosd` is started
# serverPort 6030
# serverPort 6030
# log file's directory
# The maximum number of connections a dnode can accept
# maxShellConns 5000
# The directory for writing log files
# logDir /var/log/taos
# logDir /var/log/taos
#
data file'
s directory
#
All data files are stored in thi
s directory
# dataDir /var/lib/taos
# dataDir /var/lib/taos
# temporary file's directory
# temporary file's directory
# tempDir /tmp/
# tempDir /tmp/
# the arbitrator's fully qualified domain name (FQDN) for TDengine system, for cluster only
# Switch for allowing TDengine to collect and report service usage information
# arbitrator arbitrator_hostname:6042
# number of threads per CPU core
# numOfThreadsPerCore 1.0
# number of threads to commit cache data
# numOfCommitThreads 4
# the proportion of total CPU cores available for query processing
# 2.0: the query threads will be set to double of the CPU cores.
# 1.0: all CPU cores are available for query processing [default].
# 0.5: only half of the CPU cores are available for query.
# 0.0: only one core available.
# ratioOfQueryCores 1.0
# the last_row/first/last aggregator will not change the original column name in the result fields
keepColumnName 1
# number of management nodes in the system
# numOfMnodes 1
# enable/disable backuping vnode directory when removing vnode
# vnodeBak 1
# enable/disable installation / usage report
# telemetryReporting 1
# telemetryReporting 1
# enable/disable load balancing
# The maximum number of vnodes supported by dnode
# balance 1
# supportVnodes 0
# role for dnode. 0 - any, 1 - mnode, 2 - dnode
# role 0
# max timer control blocks
# maxTmrCtrl 512
# time interval of system monitor, seconds
# monitorInterval 30
# number of seconds allowed for a dnode to be offline, for cluster only
# The interval of dnode reporting status to mnode
# offlineThreshold 864000
# RPC re-try timer, millisecond
# rpcTimer 300
# RPC maximum time for ack, seconds.
# rpcMaxTime 600
# time interval of dnode status reporting to mnode, seconds, for cluster only
# statusInterval 1
# statusInterval 1
#
time interval of heart beat from shell to dnode, seconds
#
The interval for taos shell to send heartbeat to mnode
# shellActivityTimer 3
# shellActivityTimer 3
# minimum sliding window time, milli-second
#
The
minimum sliding window time, milli-second
# minSlidingTime 10
# minSlidingTime 10
# minimum time window, milli-second
#
The
minimum time window, milli-second
# minIntervalTime 10
# minIntervalTime 10
# maximum delay before launching a stream computation, milli-second
# The maximum allowed query buffer size in MB during query processing for each data node
# maxStreamCompDelay 20000
# -1 no limit (default)
# 0 no query allowed, queries are disabled
# maximum delay before launching a stream computation for the first time, milli-second
# queryBufferSize -1
# maxFirstStreamCompDelay 10000
# retry delay when a stream computation fails, milli-second
# retryStreamCompDelay 10
# the delayed time for launching a stream computation, from 0.1(default, 10% of whole computing time window) to 0.9
# streamCompDelayRatio 0.1
# max number of vgroups per db, 0 means configured automatically
# maxVgroupsPerDb 0
# max number of tables per vnode
# maxTablesPerVnode 1000000
# cache block size (Mbyte)
# cache 16
# number of cache blocks per vnode
# blocks 6
# number of days per DB file
# days 10
# number of days to keep DB file
# keep 3650
# minimum rows of records in file block
# minRows 100
# maximum rows of records in file block
# maxRows 4096
# the number of acknowledgments required for successful data writing
# quorum 1
# enable/disable compression
# comp 2
# write ahead log (WAL) level, 0: no wal; 1: write wal, but no fysnc; 2: write wal, and call fsync
# walLevel 1
# if walLevel is set to 2, the cycle of fsync being executed, if set to 0, fsync is called right away
# fsync 3000
# number of replications, for cluster only
# replica 1
#
t
he compressed rpc message, option:
#
T
he compressed rpc message, option:
# -1 (no compression)
# -1 (no compression)
# 0 (all message compressed),
# 0 (all message compressed),
# > 0 (rpc message body which larger than this value will be compressed)
# > 0 (rpc message body which larger than this value will be compressed)
# compressMsgSize -1
# compressMsgSize
-1
# query retrieved column data compression option:
# query retrieved column data compression option:
# -1 (no compression)
# -1 (no compression)
# 0 (all retrieved column data compressed),
# 0 (all retrieved column data compressed),
# > 0 (any retrieved column size greater than this value all data will be compressed.)
# > 0 (any retrieved column size greater than this value all data will be compressed.)
# compressColData -1
# compressColData -1
# max length of an SQL
# maxSQLLength 65480
# max length of WildCards
# maxWildCardsLength 100
# the maximum number of records allowed for super table time sorting
# maxNumOfOrderedRes 100000
# system time zone
# system time zone
# timezone Asia/Shanghai (CST, +0800)
# timezone Asia/Shanghai (CST, +0800)
# system time zone (for windows 10)
# system time zone (for windows 10)
# timezone UTC-8
# timezone
UTC-8
# system locale
# system locale
# locale en_US.UTF-8
# locale
en_US.UTF-8
# default system charset
# default system charset
# charset UTF-8
# charset UTF-8
# max number of connections allowed in dnode
# maxShellConns 5000
# max number of connections allowed in client
# maxConnections 5000
# stop writing logs when the disk size of the log folder is less than this value
# stop writing logs when the disk size of the log folder is less than this value
# minimalLogDirGB 1.0
# minimalLogDirGB
1.0
# stop writing temporary files when the disk size of the tmp folder is less than this value
# stop writing temporary files when the disk size of the tmp folder is less than this value
# minimalTmpDirGB 1.0
# minimalTmpDirGB
1.0
# if disk free space is less than this value, taosd service exit directly within startup process
# if disk free space is less than this value, taosd service exit directly within startup process
# minimalDataDirGB 2.0
# minimalDataDirGB 2.0
# One mnode is equal to the number of vnode consumed
# mnodeEqualVnodeNum 4
# enbale/disable http service
# http 1
# enable/disable system monitor
# enable/disable system monitor
# monitor 1
# monitor 1
# enable/disable recording the SQL statements via restful interface
# httpEnableRecordSql 0
# number of threads used to process http requests
# httpMaxThreads 2
# maximum number of rows returned by the restful interface
# restfulRowLimit 10240
# database name must be specified in restful interface if the following parameter is set, off by default
# httpDbNameMandatory 1
# http keep alive, default is 30 seconds
# httpKeepAlive 30000
# The following parameter is used to limit the maximum number of lines in log files.
# The following parameter is used to limit the maximum number of lines in log files.
# max number of lines per log filters
# max number of lines per log filters
# numOfLogLines 10000000
# numOfLogLines
10000000
# enable/disable async log
# enable/disable async log
# asyncLog 1
# asyncLog
1
# time of keeping log files, days
# time of keeping log files, days
# logKeepDays 0
# logKeepDays 0
# The following parameters are used for debug purpose only.
# The following parameters are used for debug purpose only.
# debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
# debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
...
@@ -226,87 +106,64 @@ keepColumnName 1
...
@@ -226,87 +106,64 @@ keepColumnName 1
# 207: output trace, debug, warning and error to both screen and file
# 207: output trace, debug, warning and error to both screen and file
# debug flag for all log type, take effect when non-zero value
# debug flag for all log type, take effect when non-zero value
# debugFlag 0
# debugFlag
0
# debug flag for
meta management messages
# debug flag for
timer
#
mDebugFlag 135
#
tmrDebugFlag 131
# debug flag for
dnode messages
# debug flag for
util
#
dDebugFlag 135
#
uDebugFlag 131
# debug flag for
sync module
# debug flag for
rpc
#
sDebugFlag 135
#
rpcDebugFlag 131
# debug flag for
WAL
# debug flag for
jni
#
wDebugFlag 135
#
jniDebugFlag 131
# debug flag for SDB
# debug flag for query
# sdbDebugFlag 135
# qDebugFlag 131
# debug flag for RPC
# rpcDebugFlag 131
# debug flag for TAOS TIMER
# tmrDebugFlag 131
# debug flag for TDengine client
# cDebugFlag 131
# debug flag for JNI
# jniDebugFlag 131
# debug flag for storage
# uDebugFlag 131
# debug flag for http server
# httpDebugFlag 131
# debug flag for
monitor
# debug flag for
taosc driver
#
monDebugFlag
131
#
cDebugFlag
131
# debug flag for
query
# debug flag for
dnode messages
#
qDebugFlag 131
#
dDebugFlag 135
# debug flag for vnode
# debug flag for vnode
# vDebugFlag 131
# vDebugFlag 131
# debug flag for TSDB
# tsdbDebugFlag 131
# debug flag for
continue query
# debug flag for
meta management messages
#
cqDebugFlag 131
#
mDebugFlag 135
#
enable/disable recording the SQL in taos client
#
debug flag for wal
#
enableRecordSql 0
#
wDebugFlag 135
#
generate core file when service crash
#
debug flag for sync module
#
enableCoreFile 1
#
sDebugFlag 135
#
maximum display width of binary and nchar fields in the shell. The parts exceeding this limit will be hidden
#
debug flag for tsdb
#
maxBinaryDisplayWidth 30
#
tsdbDebugFlag 131
#
enable/disable stream (continuous query)
#
debug flag for tq
#
stream
1
#
tqDebugFlag 13
1
#
in retrieve blocking model, only in 50% query threads will be used in query processing in dnode
#
debug flag for fs
#
retrieveBlockingModel 0
#
fsDebugFlag 131
# the maximum allowed query buffer size in MB during query processing for each data node
# debug flag for udf
# -1 no limit (default)
# udfDebugFlag 131
# 0 no query allowed, queries are disabled
# queryBufferSize -1
#
percent of redundant data in tsdb meta will compact meta data,0 means donot compact
#
debug flag for sma
#
tsdbMetaCompactRatio 0
#
smaDebugFlag 131
# de
fault string type used for storing JSON String, options can be binary/nchar, default is nchar
# de
bug flag for index
#
defaultJSONStrType nchar
#
idxDebugFlag 131
#
force TCP transmission
#
debug flag for tdb
#
rpcForceTcp 0
#
tdbDebugFlag 131
#
unit MB. Flush vnode wal file if walSize > walFlushSize and walSize > cache*0.5*blocks
#
debug flag for meta
#
walFlushSize 1024
#
metaDebugFlag 131
#
unit Hour. Latency of data migration
#
generate core file when service crash
#
keepTimeOffset 0
#
enableCoreFile 1
packaging/deb/DEBIAN/prerm
浏览文件 @
3f464048
...
@@ -29,6 +29,7 @@ else
...
@@ -29,6 +29,7 @@ else
# Remove all links
# Remove all links
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/udfd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosadapter
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosadapter
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
cfg_link_dir
}
/
*
||
:
${
csudo
}
rm
-f
${
cfg_link_dir
}
/
*
||
:
...
...
packaging/deb/makedeb.sh
浏览文件 @
3f464048
...
@@ -60,6 +60,7 @@ cp ${compile_dir}/../packaging/tools/set_core.sh ${pkg_dir}${install_home_pat
...
@@ -60,6 +60,7 @@ cp ${compile_dir}/../packaging/tools/set_core.sh ${pkg_dir}${install_home_pat
cp
${
compile_dir
}
/../packaging/tools/taosd-dump-cfg.gdb
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/../packaging/tools/taosd-dump-cfg.gdb
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosd
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosd
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/udfd
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosBenchmark
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosBenchmark
${
pkg_dir
}${
install_home_path
}
/bin
if
[
-f
"
${
compile_dir
}
/build/bin/taosadapter"
]
;
then
if
[
-f
"
${
compile_dir
}
/build/bin/taosadapter"
]
;
then
...
...
packaging/rpm/tdengine.spec
浏览文件 @
3f464048
...
@@ -69,6 +69,7 @@ cp %{_compiledir}/../packaging/tools/set_core.sh %{buildroot}%{homepath}/bin
...
@@ -69,6 +69,7 @@ cp %{_compiledir}/../packaging/tools/set_core.sh %{buildroot}%{homepath}/bin
cp %{_compiledir}/../packaging/tools/taosd-dump-cfg.gdb %{buildroot}%{homepath}/bin
cp %{_compiledir}/../packaging/tools/taosd-dump-cfg.gdb %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taos %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taos %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosd %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosd %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/udfd %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosBenchmark %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosBenchmark %{buildroot}%{homepath}/bin
if [ -f %{_compiledir}/build/bin/taosadapter ]; then
if [ -f %{_compiledir}/build/bin/taosadapter ]; then
...
@@ -204,6 +205,7 @@ if [ $1 -eq 0 ];then
...
@@ -204,6 +205,7 @@ if [ $1 -eq 0 ];then
# Remove all links
# Remove all links
${csudo}rm -f ${bin_link_dir}/taos || :
${csudo}rm -f ${bin_link_dir}/taos || :
${csudo}rm -f ${bin_link_dir}/taosd || :
${csudo}rm -f ${bin_link_dir}/taosd || :
${csudo}rm -f ${bin_link_dir}/udfd || :
${csudo}rm -f ${bin_link_dir}/taosadapter || :
${csudo}rm -f ${bin_link_dir}/taosadapter || :
${csudo}rm -f ${cfg_link_dir}/* || :
${csudo}rm -f ${cfg_link_dir}/* || :
${csudo}rm -f ${inc_link_dir}/taos.h || :
${csudo}rm -f ${inc_link_dir}/taos.h || :
...
...
packaging/tools/install.sh
浏览文件 @
3f464048
...
@@ -18,6 +18,7 @@ script_dir=$(dirname $(readlink -f "$0"))
...
@@ -18,6 +18,7 @@ script_dir=$(dirname $(readlink -f "$0"))
clientName
=
"taos"
clientName
=
"taos"
serverName
=
"taosd"
serverName
=
"taosd"
udfdName
=
"udfd"
configFile
=
"taos.cfg"
configFile
=
"taos.cfg"
productName
=
"TDengine"
productName
=
"TDengine"
emailName
=
"taosdata.com"
emailName
=
"taosdata.com"
...
@@ -192,6 +193,7 @@ function install_bin() {
...
@@ -192,6 +193,7 @@ function install_bin() {
# Remove links
# Remove links
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
serverName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
serverName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
udfdName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
adapterName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
adapterName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
demoName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
demoName
}
||
:
...
@@ -205,6 +207,7 @@ function install_bin() {
...
@@ -205,6 +207,7 @@ function install_bin() {
#Make link
#Make link
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
serverName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
serverName
}
${
bin_link_dir
}
/
${
serverName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
serverName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
serverName
}
${
bin_link_dir
}
/
${
serverName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
udfdName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
udfdName
}
${
bin_link_dir
}
/
${
udfdName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
adapterName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
adapterName
}
${
bin_link_dir
}
/
${
adapterName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
adapterName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
adapterName
}
${
bin_link_dir
}
/
${
adapterName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
demoName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
demoName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
benchmarkName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
benchmarkName
}
||
:
...
@@ -742,7 +745,7 @@ function is_version_compatible() {
...
@@ -742,7 +745,7 @@ function is_version_compatible() {
fi
fi
exist_version
=
$(
${
installDir
}
/bin/
${
serverName
}
-V
|
head
-1
|
cut
-d
' '
-f
3
)
exist_version
=
$(
${
installDir
}
/bin/
${
serverName
}
-V
|
head
-1
|
cut
-d
' '
-f
3
)
vercomp
$exist_version
"
2.0.16
.0"
vercomp
$exist_version
"
3.0.0
.0"
case
$?
in
case
$?
in
2
)
2
)
prompt_force
=
1
prompt_force
=
1
...
...
packaging/tools/makepkg.sh
浏览文件 @
3f464048
...
@@ -85,6 +85,7 @@ else
...
@@ -85,6 +85,7 @@ else
${
build_dir
}
/bin/
${
clientName
}
\
${
build_dir
}
/bin/
${
clientName
}
\
${
taostools_bin_files
}
\
${
taostools_bin_files
}
\
${
build_dir
}
/bin/taosadapter
\
${
build_dir
}
/bin/taosadapter
\
${
build_dir
}
/bin/udfd
\
${
script_dir
}
/remove.sh
\
${
script_dir
}
/remove.sh
\
${
script_dir
}
/set_core.sh
\
${
script_dir
}
/set_core.sh
\
${
script_dir
}
/startPre.sh
\
${
script_dir
}
/startPre.sh
\
...
@@ -318,7 +319,7 @@ if [ "$verMode" == "cluster" ]; then
...
@@ -318,7 +319,7 @@ if [ "$verMode" == "cluster" ]; then
fi
fi
# Copy release note
# Copy release note
cp
${
script_dir
}
/release_note
${
install_dir
}
#
cp ${script_dir}/release_note ${install_dir}
# exit 1
# exit 1
...
...
packaging/tools/post.sh
浏览文件 @
3f464048
...
@@ -118,6 +118,7 @@ function install_bin() {
...
@@ -118,6 +118,7 @@ function install_bin() {
# Remove links
# Remove links
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taos
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/udfd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosadapter
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosadapter
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosBenchmark
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosBenchmark
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
...
@@ -130,6 +131,7 @@ function install_bin() {
...
@@ -130,6 +131,7 @@ function install_bin() {
#Make link
#Make link
[
-x
${
bin_dir
}
/taos
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taos
${
bin_link_dir
}
/taos
||
:
[
-x
${
bin_dir
}
/taos
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taos
${
bin_link_dir
}
/taos
||
:
[
-x
${
bin_dir
}
/taosd
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosd
${
bin_link_dir
}
/taosd
||
:
[
-x
${
bin_dir
}
/taosd
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosd
${
bin_link_dir
}
/taosd
||
:
[
-x
${
bin_dir
}
/udfd
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/udfd
${
bin_link_dir
}
/udfd
||
:
[
-x
${
bin_dir
}
/taosadapter
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosadapter
${
bin_link_dir
}
/taosadapter
||
:
[
-x
${
bin_dir
}
/taosadapter
]
&&
${
csudo
}
ln
-s
${
bin_dir
}
/taosadapter
${
bin_link_dir
}
/taosadapter
||
:
[
-x
${
bin_dir
}
/taosBenchmark
]
&&
${
csudo
}
ln
-sf
${
bin_dir
}
/taosBenchmark
${
bin_link_dir
}
/taosdemo
||
:
[
-x
${
bin_dir
}
/taosBenchmark
]
&&
${
csudo
}
ln
-sf
${
bin_dir
}
/taosBenchmark
${
bin_link_dir
}
/taosdemo
||
:
[
-x
${
bin_dir
}
/taosBenchmark
]
&&
${
csudo
}
ln
-sf
${
bin_dir
}
/taosBenchmark
${
bin_link_dir
}
/taosBenchmark
||
:
[
-x
${
bin_dir
}
/taosBenchmark
]
&&
${
csudo
}
ln
-sf
${
bin_dir
}
/taosBenchmark
${
bin_link_dir
}
/taosBenchmark
||
:
...
...
packaging/tools/tdengine.iss
浏览文件 @
3f464048
...
@@ -51,7 +51,7 @@ Source: taos.bat; DestDir: "{app}\include"; Flags: igNoreversion;
...
@@ -51,7 +51,7 @@ Source: taos.bat; DestDir: "{app}\include"; Flags: igNoreversion;
;Source: taosdemo.png; DestDir: "{app}\include"; Flags: igNoreversion;
;Source: taosdemo.png; DestDir: "{app}\include"; Flags: igNoreversion;
;Source: taosShell.png; DestDir: "{app}\include"; Flags: igNoreversion;
;Source: taosShell.png; DestDir: "{app}\include"; Flags: igNoreversion;
Source: favicon.ico; DestDir: "{app}\include"; Flags: igNoreversion;
Source: favicon.ico; DestDir: "{app}\include"; Flags: igNoreversion;
Source: {#MyAppSourceDir}{#MyAppDLLName}; DestDir: "{win}\System32"; Flags:
igNoreversion
;
Source: {#MyAppSourceDir}{#MyAppDLLName}; DestDir: "{win}\System32"; Flags:
64bit;Check:IsWin64
;
Source: {#MyAppSourceDir}{#MyAppCfgName}; DestDir: "{app}\cfg"; Flags: igNoreversion recursesubdirs createallsubdirs onlyifdoesntexist uninsneveruninstall
Source: {#MyAppSourceDir}{#MyAppCfgName}; DestDir: "{app}\cfg"; Flags: igNoreversion recursesubdirs createallsubdirs onlyifdoesntexist uninsneveruninstall
Source: {#MyAppSourceDir}{#MyAppDriverName}; DestDir: "{app}\driver"; Flags: igNoreversion recursesubdirs createallsubdirs
Source: {#MyAppSourceDir}{#MyAppDriverName}; DestDir: "{app}\driver"; Flags: igNoreversion recursesubdirs createallsubdirs
;Source: {#MyAppSourceDir}{#MyAppConnectorName}; DestDir: "{app}\connector"; Flags: igNoreversion recursesubdirs createallsubdirs
;Source: {#MyAppSourceDir}{#MyAppConnectorName}; DestDir: "{app}\connector"; Flags: igNoreversion recursesubdirs createallsubdirs
...
...
source/os/src/osRand.c
浏览文件 @
3f464048
...
@@ -37,9 +37,13 @@ uint32_t taosRandR(uint32_t *pSeed) {
...
@@ -37,9 +37,13 @@ uint32_t taosRandR(uint32_t *pSeed) {
uint32_t
taosSafeRand
(
void
)
{
uint32_t
taosSafeRand
(
void
)
{
#ifdef WINDOWS
#ifdef WINDOWS
uint32_t
seed
;
uint32_t
seed
=
taosRand
()
;
HCRYPTPROV
hCryptProv
;
HCRYPTPROV
hCryptProv
;
if
(
!
CryptAcquireContext
(
&
hCryptProv
,
NULL
,
NULL
,
PROV_RSA_FULL
,
0
))
return
seed
;
if
(
!
CryptAcquireContext
(
&
hCryptProv
,
NULL
,
NULL
,
PROV_RSA_FULL
,
0
))
{
if
(
!
CryptAcquireContext
(
&
hCryptProv
,
NULL
,
NULL
,
PROV_RSA_FULL
,
CRYPT_NEWKEYSET
))
{
return
seed
;
}
}
if
(
hCryptProv
!=
NULL
)
{
if
(
hCryptProv
!=
NULL
)
{
if
(
!
CryptGenRandom
(
hCryptProv
,
4
,
&
seed
))
return
seed
;
if
(
!
CryptGenRandom
(
hCryptProv
,
4
,
&
seed
))
return
seed
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录