Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
34a7319c
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看板
提交
34a7319c
编写于
9月 08, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' of
https://github.com/taosdata/TDengine
into fix/stt_trigger_config
上级
eae7947c
23e8fd54
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
9 deletion
+8
-9
packaging/testpackage.sh
packaging/testpackage.sh
+6
-7
source/util/src/tuuid.c
source/util/src/tuuid.c
+2
-2
未找到文件。
packaging/testpackage.sh
浏览文件 @
34a7319c
...
@@ -7,7 +7,6 @@ originPackageName=$3
...
@@ -7,7 +7,6 @@ originPackageName=$3
originversion
=
$4
originversion
=
$4
testFile
=
$5
testFile
=
$5
subFile
=
"taos.tar.gz"
subFile
=
"taos.tar.gz"
password
=
$6
# Color setting
# Color setting
RED
=
'\033[41;30m'
RED
=
'\033[41;30m'
...
@@ -233,15 +232,15 @@ cd ${installPath}
...
@@ -233,15 +232,15 @@ cd ${installPath}
if
[[
${
packgeName
}
=
~
"Lite"
]]
||
([[
${
packgeName
}
=
~
"x64"
]]
&&
[[
${
packgeName
}
=
~
"client"
]])
||
([[
${
packgeName
}
=
~
"deb"
]]
&&
[[
${
packgeName
}
=
~
"server"
]])
||
([[
${
packgeName
}
=
~
"rpm"
]]
&&
[[
${
packgeName
}
=
~
"server"
]])
;
then
if
[[
${
packgeName
}
=
~
"Lite"
]]
||
([[
${
packgeName
}
=
~
"x64"
]]
&&
[[
${
packgeName
}
=
~
"client"
]])
||
([[
${
packgeName
}
=
~
"deb"
]]
&&
[[
${
packgeName
}
=
~
"server"
]])
||
([[
${
packgeName
}
=
~
"rpm"
]]
&&
[[
${
packgeName
}
=
~
"server"
]])
;
then
echoColor G
"===== install taos-tools when package is lite or client ====="
echoColor G
"===== install taos-tools when package is lite or client ====="
cd
${
installPath
}
cd
${
installPath
}
wgetFile taosTools-2.1.
2
-Linux-x64.tar.gz
.
wgetFile taosTools-2.1.
3
-Linux-x64.tar.gz
.
tar
xf taosTools-2.1.
2
-Linux-x64.tar.gz
tar
xf taosTools-2.1.
3
-Linux-x64.tar.gz
cd
taosTools-2.1.
2
&&
bash install-taostools.sh
cd
taosTools-2.1.
3
&&
bash install-taostools.sh
elif
([[
${
packgeName
}
=
~
"arm64"
]]
&&
[[
${
packgeName
}
=
~
"client"
]])
;
then
elif
([[
${
packgeName
}
=
~
"arm64"
]]
&&
[[
${
packgeName
}
=
~
"client"
]])
;
then
echoColor G
"===== install taos-tools arm when package is arm64-client ====="
echoColor G
"===== install taos-tools arm when package is arm64-client ====="
cd
${
installPath
}
cd
${
installPath
}
wgetFile taosTools-2.1.
2
-Linux-arm64.tar.gz
.
wgetFile taosTools-2.1.
3
-Linux-arm64.tar.gz
.
tar
xf taosTools-2.1.
2
-Linux-arm64.tar.gz
tar
xf taosTools-2.1.
3
-Linux-arm64.tar.gz
cd
taosTools-2.1.
2
&&
bash install-taostools.sh
cd
taosTools-2.1.
3
&&
bash install-taostools.sh
fi
fi
echoColor G
"===== start TDengine ====="
echoColor G
"===== start TDengine ====="
...
...
source/util/src/tuuid.c
浏览文件 @
34a7319c
...
@@ -51,11 +51,11 @@ int64_t tGenIdPI64(void) {
...
@@ -51,11 +51,11 @@ int64_t tGenIdPI64(void) {
int64_t
id
;
int64_t
id
;
while
(
true
)
{
while
(
true
)
{
int64_t
ts
=
taosGetTimestampMs
();
int64_t
ts
=
taosGetTimestampMs
()
>>
8
;
uint64_t
pid
=
taosGetPId
();
uint64_t
pid
=
taosGetPId
();
int32_t
val
=
atomic_add_fetch_32
(
&
tUUIDSerialNo
,
1
);
int32_t
val
=
atomic_add_fetch_32
(
&
tUUIDSerialNo
,
1
);
id
=
((
tUUIDHashId
&
0x07FF
)
<<
52
)
|
((
pid
&
0x0F
FF
)
<<
40
)
|
((
ts
&
0xFFFFFF
)
<<
16
)
|
(
val
&
0x
FFFF
);
id
=
((
tUUIDHashId
&
0x07FF
)
<<
52
)
|
((
pid
&
0x0F
)
<<
48
)
|
((
ts
&
0x3FFFFFF
)
<<
20
)
|
(
val
&
0xF
FFFF
);
if
(
id
)
{
if
(
id
)
{
break
;
break
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录