Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d266bfe1
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看板
提交
d266bfe1
编写于
7月 20, 2022
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix stmt memory leak
上级
fdd9f3c4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
10 deletion
+11
-10
include/os/osSysinfo.h
include/os/osSysinfo.h
+1
-1
source/dnode/mgmt/exe/dmMain.c
source/dnode/mgmt/exe/dmMain.c
+2
-2
source/libs/function/src/udfd.c
source/libs/function/src/udfd.c
+2
-2
source/os/src/osSysinfo.c
source/os/src/osSysinfo.c
+1
-1
tests/script/api/batchprepare.c
tests/script/api/batchprepare.c
+5
-4
未找到文件。
include/os/osSysinfo.h
浏览文件 @
d266bfe1
...
@@ -33,7 +33,7 @@ typedef struct {
...
@@ -33,7 +33,7 @@ typedef struct {
SDiskSize
size
;
SDiskSize
size
;
}
SDiskSpace
;
}
SDiskSpace
;
bool
taosCheckSystemIs
Small
End
();
bool
taosCheckSystemIs
Little
End
();
void
taosGetSystemInfo
();
void
taosGetSystemInfo
();
int32_t
taosGetEmail
(
char
*
email
,
int32_t
maxLen
);
int32_t
taosGetEmail
(
char
*
email
,
int32_t
maxLen
);
int32_t
taosGetOsReleaseName
(
char
*
releaseName
,
int32_t
maxLen
);
int32_t
taosGetOsReleaseName
(
char
*
releaseName
,
int32_t
maxLen
);
...
...
source/dnode/mgmt/exe/dmMain.c
浏览文件 @
d266bfe1
...
@@ -158,8 +158,8 @@ static void taosCleanupArgs() {
...
@@ -158,8 +158,8 @@ static void taosCleanupArgs() {
}
}
int
main
(
int
argc
,
char
const
*
argv
[])
{
int
main
(
int
argc
,
char
const
*
argv
[])
{
if
(
!
taosCheckSystemIs
Small
End
())
{
if
(
!
taosCheckSystemIs
Little
End
())
{
printf
(
"failed to start since on non-
small
-end machines
\n
"
);
printf
(
"failed to start since on non-
little
-end machines
\n
"
);
return
-
1
;
return
-
1
;
}
}
...
...
source/libs/function/src/udfd.c
浏览文件 @
d266bfe1
...
@@ -913,8 +913,8 @@ void udfdConnectMnodeThreadFunc(void *args) {
...
@@ -913,8 +913,8 @@ void udfdConnectMnodeThreadFunc(void *args) {
}
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
!
taosCheckSystemIs
Small
End
())
{
if
(
!
taosCheckSystemIs
Little
End
())
{
printf
(
"failed to start since on non-
small
-end machines
\n
"
);
printf
(
"failed to start since on non-
little
-end machines
\n
"
);
return
-
1
;
return
-
1
;
}
}
...
...
source/os/src/osSysinfo.c
浏览文件 @
d266bfe1
...
@@ -210,7 +210,7 @@ static int32_t taosGetProcCpuInfo(ProcCpuInfo *cpuInfo) {
...
@@ -210,7 +210,7 @@ static int32_t taosGetProcCpuInfo(ProcCpuInfo *cpuInfo) {
}
}
bool
taosCheckSystemIs
Small
End
()
{
bool
taosCheckSystemIs
Little
End
()
{
union
check
{
union
check
{
int16_t
i
;
int16_t
i
;
char
ch
[
2
];
char
ch
[
2
];
...
...
tests/script/api/batchprepare.c
浏览文件 @
d266bfe1
...
@@ -299,7 +299,7 @@ CaseCtrl gCaseCtrl = { // query case with specified col&oper
...
@@ -299,7 +299,7 @@ CaseCtrl gCaseCtrl = { // query case with specified col&oper
.printRes = true,
.printRes = true,
.runTimes = 0,
.runTimes = 0,
.caseRunIdx = -1,
.caseRunIdx = -1,
.caseIdx =
23
,
.caseIdx =
5
,
.caseNum = 1,
.caseNum = 1,
.caseRunNum = 1,
.caseRunNum = 1,
};
};
...
@@ -1408,7 +1408,7 @@ void bpCheckColFields(TAOS_STMT *stmt, TAOS_MULTI_BIND* pBind) {
...
@@ -1408,7 +1408,7 @@ void bpCheckColFields(TAOS_STMT *stmt, TAOS_MULTI_BIND* pBind) {
void
bpShowBindParam
(
TAOS_MULTI_BIND
*
bind
,
int32_t
num
)
{
void
bpShowBindParam
(
TAOS_MULTI_BIND
*
bind
,
int32_t
num
)
{
for
(
int32_t
i
=
0
;
i
<
num
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
num
;
++
i
)
{
TAOS_MULTI_BIND
*
b
=
&
bind
[
i
];
TAOS_MULTI_BIND
*
b
=
&
bind
[
i
];
printf
(
"Bind %d: type[%d],buf[%p],buflen[%d],len[%],null[%d],num[%d]
\n
"
,
printf
(
"Bind %d: type[%d],buf[%p],buflen[%d],len[%
d
],null[%d],num[%d]
\n
"
,
i
,
b
->
buffer_type
,
b
->
buffer
,
b
->
buffer_length
,
b
->
length
?
*
b
->
length
:
0
,
b
->
is_null
?
*
b
->
is_null
:
0
,
b
->
num
);
i
,
b
->
buffer_type
,
b
->
buffer
,
b
->
buffer_length
,
b
->
length
?
*
b
->
length
:
0
,
b
->
is_null
?
*
b
->
is_null
:
0
,
b
->
num
);
}
}
}
}
...
@@ -2599,7 +2599,6 @@ void runAll(TAOS *taos) {
...
@@ -2599,7 +2599,6 @@ void runAll(TAOS *taos) {
runCaseList
(
taos
);
runCaseList
(
taos
);
#if 0
#if 0
strcpy(gCaseCtrl.caseCatalog, "Micro DB precision Test");
strcpy(gCaseCtrl.caseCatalog, "Micro DB precision Test");
printf("%s Begin\n", gCaseCtrl.caseCatalog);
printf("%s Begin\n", gCaseCtrl.caseCatalog);
gCaseCtrl.precision = TIME_PRECISION_MICRO;
gCaseCtrl.precision = TIME_PRECISION_MICRO;
...
@@ -2655,13 +2654,15 @@ void runAll(TAOS *taos) {
...
@@ -2655,13 +2654,15 @@ void runAll(TAOS *taos) {
gCaseCtrl.bindColNum = 6;
gCaseCtrl.bindColNum = 6;
runCaseList(taos);
runCaseList(taos);
gCaseCtrl.bindColNum = 0;
gCaseCtrl.bindColNum = 0;
#endif
/*
strcpy(gCaseCtrl.caseCatalog, "Bind Col Type Test");
strcpy(gCaseCtrl.caseCatalog, "Bind Col Type Test");
printf("%s Begin\n", gCaseCtrl.caseCatalog);
printf("%s Begin\n", gCaseCtrl.caseCatalog);
gCaseCtrl.bindColTypeNum = tListLen(bindColTypeList);
gCaseCtrl.bindColTypeNum = tListLen(bindColTypeList);
gCaseCtrl.bindColTypeList = bindColTypeList;
gCaseCtrl.bindColTypeList = bindColTypeList;
runCaseList(taos);
runCaseList(taos);
#endif
*/
printf
(
"All Test End
\n
"
);
printf
(
"All Test End
\n
"
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录