Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
6184d330
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6184d330
编写于
6月 17, 2022
作者:
wmmhello
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: comment & ttl
上级
8ace8dfd
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
40 addition
and
14 deletion
+40
-14
include/common/tglobal.h
include/common/tglobal.h
+1
-1
include/util/version.h
include/util/version.h
+1
-1
source/client/src/clientMain.c
source/client/src/clientMain.c
+1
-1
source/common/src/tglobal.c
source/common/src/tglobal.c
+1
-1
source/dnode/mgmt/exe/dmMain.c
source/dnode/mgmt/exe/dmMain.c
+1
-1
source/dnode/mnode/impl/src/mndMain.c
source/dnode/mnode/impl/src/mndMain.c
+1
-1
source/dnode/mnode/impl/src/mndProfile.c
source/dnode/mnode/impl/src/mndProfile.c
+1
-1
source/dnode/mnode/impl/src/mndTelem.c
source/dnode/mnode/impl/src/mndTelem.c
+1
-1
source/libs/function/src/udfd.c
source/libs/function/src/udfd.c
+1
-1
source/libs/parser/src/parInsert.c
source/libs/parser/src/parInsert.c
+1
-0
source/util/src/version.c.in
source/util/src/version.c.in
+1
-1
tests/system-test/2-query/ttl_comment.py
tests/system-test/2-query/ttl_comment.py
+26
-1
tools/shell/src/shellArguments.c
tools/shell/src/shellArguments.c
+2
-2
tools/shell/src/shellUtil.c
tools/shell/src/shellUtil.c
+1
-1
未找到文件。
include/common/tglobal.h
浏览文件 @
6184d330
...
...
@@ -108,7 +108,7 @@ extern float tsStreamComputDelayRatio; // the delayed computing ration of the
extern
int64_t
tsMaxRetentWindow
;
// build info
extern
char
td_
version
[];
extern
char
version
[];
extern
char
compatible_version
[];
extern
char
gitinfo
[];
extern
char
buildinfo
[];
...
...
include/util/version.h
浏览文件 @
6184d330
...
...
@@ -20,7 +20,7 @@
extern
"C"
{
#endif
extern
char
td_
version
[];
extern
char
version
[];
extern
char
compatible_version
[];
extern
char
gitinfo
[];
extern
char
buildinfo
[];
...
...
source/client/src/clientMain.c
浏览文件 @
6184d330
...
...
@@ -397,7 +397,7 @@ const char *taos_data_type(int type) {
}
}
const
char
*
taos_get_client_info
()
{
return
td_
version
;
}
const
char
*
taos_get_client_info
()
{
return
version
;
}
int
taos_affected_rows
(
TAOS_RES
*
res
)
{
if
(
res
==
NULL
||
TD_RES_TMQ
(
res
))
{
...
...
source/common/src/tglobal.c
浏览文件 @
6184d330
...
...
@@ -362,7 +362,7 @@ static int32_t taosAddSystemCfg(SConfig *pCfg) {
if
(
cfgAddString
(
pCfg
,
"os version"
,
info
.
version
,
1
)
!=
0
)
return
-
1
;
if
(
cfgAddString
(
pCfg
,
"os machine"
,
info
.
machine
,
1
)
!=
0
)
return
-
1
;
if
(
cfgAddString
(
pCfg
,
"version"
,
td_
version
,
1
)
!=
0
)
return
-
1
;
if
(
cfgAddString
(
pCfg
,
"version"
,
version
,
1
)
!=
0
)
return
-
1
;
if
(
cfgAddString
(
pCfg
,
"compatible_version"
,
compatible_version
,
1
)
!=
0
)
return
-
1
;
if
(
cfgAddString
(
pCfg
,
"gitinfo"
,
gitinfo
,
1
)
!=
0
)
return
-
1
;
if
(
cfgAddString
(
pCfg
,
"buildinfo"
,
buildinfo
,
1
)
!=
0
)
return
-
1
;
...
...
source/dnode/mgmt/exe/dmMain.c
浏览文件 @
6184d330
...
...
@@ -114,7 +114,7 @@ static void dmPrintVersion() {
#else
char
*
releaseName
=
"community"
;
#endif
printf
(
"%s version: %s compatible_version: %s
\n
"
,
releaseName
,
td_
version
,
compatible_version
);
printf
(
"%s version: %s compatible_version: %s
\n
"
,
releaseName
,
version
,
compatible_version
);
printf
(
"gitinfo: %s
\n
"
,
gitinfo
);
printf
(
"buildInfo: %s
\n
"
,
buildinfo
);
}
...
...
source/dnode/mnode/impl/src/mndMain.c
浏览文件 @
6184d330
...
...
@@ -642,7 +642,7 @@ int32_t mndGetMonitorInfo(SMnode *pMnode, SMonClusterInfo *pClusterInfo, SMonVgr
}
// cluster info
tstrncpy
(
pClusterInfo
->
version
,
td_
version
,
sizeof
(
pClusterInfo
->
version
));
tstrncpy
(
pClusterInfo
->
version
,
version
,
sizeof
(
pClusterInfo
->
version
));
pClusterInfo
->
monitor_interval
=
tsMonitorInterval
;
pClusterInfo
->
connections_total
=
mndGetNumOfConnections
(
pMnode
);
...
...
source/dnode/mnode/impl/src/mndProfile.c
浏览文件 @
6184d330
...
...
@@ -232,7 +232,7 @@ static int32_t mndProcessConnectReq(SRpcMsg *pReq) {
connectRsp
.
connType
=
connReq
.
connType
;
connectRsp
.
dnodeNum
=
mndGetDnodeSize
(
pMnode
);
snprintf
(
connectRsp
.
sVersion
,
sizeof
(
connectRsp
.
sVersion
),
"ver:%s
\n
build:%s
\n
gitinfo:%s"
,
td_
version
,
buildinfo
,
snprintf
(
connectRsp
.
sVersion
,
sizeof
(
connectRsp
.
sVersion
),
"ver:%s
\n
build:%s
\n
gitinfo:%s"
,
version
,
buildinfo
,
gitinfo
);
mndGetMnodeEpSet
(
pMnode
,
&
connectRsp
.
epSet
);
...
...
source/dnode/mnode/impl/src/mndTelem.c
浏览文件 @
6184d330
...
...
@@ -110,7 +110,7 @@ static char* mndBuildTelemetryReport(SMnode* pMnode) {
snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
PRId64
" kB"
,
tsTotalMemoryKB
);
tjsonAddStringToObject
(
pJson
,
"memory"
,
tmp
);
tjsonAddStringToObject
(
pJson
,
"version"
,
td_
version
);
tjsonAddStringToObject
(
pJson
,
"version"
,
version
);
tjsonAddStringToObject
(
pJson
,
"buildInfo"
,
buildinfo
);
tjsonAddStringToObject
(
pJson
,
"gitInfo"
,
gitinfo
);
tjsonAddStringToObject
(
pJson
,
"email"
,
pMgmt
->
email
);
...
...
source/libs/function/src/udfd.c
浏览文件 @
6184d330
...
...
@@ -785,7 +785,7 @@ static void udfdPrintVersion() {
#else
char
*
releaseName
=
"community"
;
#endif
printf
(
"%s version: %s compatible_version: %s
\n
"
,
releaseName
,
td_
version
,
compatible_version
);
printf
(
"%s version: %s compatible_version: %s
\n
"
,
releaseName
,
version
,
compatible_version
);
printf
(
"gitinfo: %s
\n
"
,
gitinfo
);
printf
(
"buildInfo: %s
\n
"
,
buildinfo
);
}
...
...
source/libs/parser/src/parInsert.c
浏览文件 @
6184d330
...
...
@@ -803,6 +803,7 @@ static void buildCreateTbReq(SVCreateTbReq* pTbReq, const char* tname, STag* pTa
pTbReq
->
name
=
strdup
(
tname
);
pTbReq
->
ctb
.
suid
=
suid
;
pTbReq
->
ctb
.
pTag
=
(
uint8_t
*
)
pTag
;
pTbReq
->
commentLen
=
-
1
;
return
;
}
...
...
source/util/src/version.c.in
浏览文件 @
6184d330
char
td_
version[12] = "${TD_VER_NUMBER}";
char version[12] = "${TD_VER_NUMBER}";
char compatible_version[12] = "${TD_VER_COMPATIBLE}";
char gitinfo[48] = "${TD_VER_GIT}";
char buildinfo[64] = "Built at ${TD_VER_DATE}";
...
...
tests/system-test/2-query/ttl_comment.py
浏览文件 @
6184d330
...
...
@@ -132,17 +132,21 @@ class TDTestCase:
print
(
"============== STEP 3 ===== test child table"
)
tdSql
.
execute
(
"create table child_table1 using super_table1 tags(1)"
)
tdSql
.
execute
(
"create table child_table1 using super_table1 tags(1)
ttl 10
"
)
tdSql
.
execute
(
"create table child_table2 using super_table1 tags(1) comment ''"
)
tdSql
.
execute
(
"create table child_table3 using super_table1 tags(1) comment 'child'"
)
tdSql
.
execute
(
"insert into child_table4 using super_table1 tags(1) values(now, 1)"
)
tdSql
.
query
(
"show tables like 'child_table1'"
)
tdSql
.
checkData
(
0
,
0
,
'child_table1'
)
tdSql
.
checkData
(
0
,
7
,
10
)
tdSql
.
checkData
(
0
,
8
,
None
)
tdSql
.
query
(
"show tables like 'child_table2'"
)
tdSql
.
checkData
(
0
,
0
,
'child_table2'
)
tdSql
.
checkData
(
0
,
7
,
0
)
tdSql
.
checkData
(
0
,
8
,
''
)
...
...
@@ -150,6 +154,11 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
'child_table3'
)
tdSql
.
checkData
(
0
,
8
,
'child'
)
tdSql
.
query
(
"show tables like 'child_table4'"
)
tdSql
.
checkData
(
0
,
0
,
'child_table4'
)
tdSql
.
checkData
(
0
,
7
,
0
)
tdSql
.
checkData
(
0
,
8
,
None
)
tdSql
.
execute
(
"alter table child_table1 comment 'nihao'"
)
tdSql
.
query
(
"show tables like 'child_table1'"
)
...
...
@@ -171,6 +180,22 @@ class TDTestCase:
tdSql
.
checkData
(
0
,
0
,
'child_table3'
)
tdSql
.
checkData
(
0
,
8
,
'tdengine'
)
tdSql
.
execute
(
"alter table child_table4 comment 'tdengine'"
)
tdSql
.
query
(
"show tables like 'child_table4'"
)
tdSql
.
checkData
(
0
,
0
,
'child_table4'
)
tdSql
.
checkData
(
0
,
8
,
'tdengine'
)
tdSql
.
execute
(
"alter table child_table4 ttl 9"
)
tdSql
.
query
(
"show tables like 'child_table4'"
)
tdSql
.
checkData
(
0
,
0
,
'child_table4'
)
tdSql
.
checkData
(
0
,
7
,
9
)
tdSql
.
execute
(
"alter table child_table3 ttl 9"
)
tdSql
.
query
(
"show tables like 'child_table3'"
)
tdSql
.
checkData
(
0
,
0
,
'child_table3'
)
tdSql
.
checkData
(
0
,
7
,
9
)
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
...
...
tools/shell/src/shellArguments.c
浏览文件 @
6184d330
...
...
@@ -67,7 +67,7 @@ void shellPrintHelp() {
#include <argp.h>
#include <termio.h>
const
char
*
argp_program_version
=
td_
version
;
const
char
*
argp_program_version
=
version
;
const
char
*
argp_program_bug_address
=
SHELL_EMAIL
;
static
struct
argp_option
shellOptions
[]
=
{
...
...
@@ -342,7 +342,7 @@ int32_t shellParseArgs(int32_t argc, char *argv[]) {
shell
.
info
.
promptHeader
=
"taos> "
;
shell
.
info
.
promptContinue
=
" -> "
;
shell
.
info
.
promptSize
=
6
;
snprintf
(
shell
.
info
.
programVersion
,
sizeof
(
shell
.
info
.
programVersion
),
"version: %s"
,
td_
version
);
snprintf
(
shell
.
info
.
programVersion
,
sizeof
(
shell
.
info
.
programVersion
),
"version: %s"
,
version
);
#if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32)
shell
.
info
.
osname
=
"Windows"
;
...
...
tools/shell/src/shellUtil.c
浏览文件 @
6184d330
...
...
@@ -68,7 +68,7 @@ int32_t shellCheckIntSize() {
return
0
;
}
void
shellPrintVersion
()
{
printf
(
"version: %s
\n
"
,
td_
version
);
}
void
shellPrintVersion
()
{
printf
(
"version: %s
\n
"
,
version
);
}
void
shellGenerateAuth
()
{
char
secretEncrypt
[
TSDB_PASSWORD_LEN
+
1
]
=
{
0
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录