Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
ad398bb6
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看板
提交
ad398bb6
编写于
4月 21, 2022
作者:
S
slzhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
run ci test again
上级
db8e829d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
5 deletion
+9
-5
include/os/osEnv.h
include/os/osEnv.h
+1
-0
source/dnode/mgmt/implement/src/dmHandle.c
source/dnode/mgmt/implement/src/dmHandle.c
+4
-2
source/os/src/osEnv.c
source/os/src/osEnv.c
+1
-0
source/os/src/osProc.c
source/os/src/osProc.c
+1
-1
tests/script/test.sh
tests/script/test.sh
+2
-2
未找到文件。
include/os/osEnv.h
浏览文件 @
ad398bb6
...
@@ -34,6 +34,7 @@ extern int64_t tsOpenMax;
...
@@ -34,6 +34,7 @@ extern int64_t tsOpenMax;
extern
int64_t
tsStreamMax
;
extern
int64_t
tsStreamMax
;
extern
float
tsNumOfCores
;
extern
float
tsNumOfCores
;
extern
int64_t
tsTotalMemoryKB
;
extern
int64_t
tsTotalMemoryKB
;
extern
char
*
tsProcPath
;
extern
char
configDir
[];
extern
char
configDir
[];
extern
char
tsDataDir
[];
extern
char
tsDataDir
[];
...
...
source/dnode/mgmt/implement/src/dmHandle.c
浏览文件 @
ad398bb6
...
@@ -234,7 +234,10 @@ static int32_t dmSpawnUdfd(SDnode *pDnode) {
...
@@ -234,7 +234,10 @@ static int32_t dmSpawnUdfd(SDnode *pDnode) {
dInfo
(
"dnode start spawning udfd"
);
dInfo
(
"dnode start spawning udfd"
);
uv_process_options_t
options
=
{
0
};
uv_process_options_t
options
=
{
0
};
char
path
[]
=
"udfd"
;
char
path
[
PATH_MAX
]
=
{
0
};
strncpy
(
path
,
tsProcPath
,
strlen
(
tsProcPath
));
char
*
dirName
=
taosDirName
(
path
);
strcat
(
path
,
"/udfd"
);
char
*
argsUdfd
[]
=
{
path
,
"-c"
,
configDir
,
NULL
};
char
*
argsUdfd
[]
=
{
path
,
"-c"
,
configDir
,
NULL
};
options
.
args
=
argsUdfd
;
options
.
args
=
argsUdfd
;
options
.
file
=
path
;
options
.
file
=
path
;
...
@@ -261,7 +264,6 @@ static int32_t dmSpawnUdfd(SDnode *pDnode) {
...
@@ -261,7 +264,6 @@ static int32_t dmSpawnUdfd(SDnode *pDnode) {
options
.
env
=
envUdfd
;
options
.
env
=
envUdfd
;
int
err
=
uv_spawn
(
&
pData
->
loop
,
&
pData
->
process
,
&
options
);
int
err
=
uv_spawn
(
&
pData
->
loop
,
&
pData
->
process
,
&
options
);
pData
->
process
.
data
=
(
void
*
)
pDnode
;
pData
->
process
.
data
=
(
void
*
)
pDnode
;
if
(
err
!=
0
)
{
if
(
err
!=
0
)
{
...
...
source/os/src/osEnv.c
浏览文件 @
ad398bb6
...
@@ -37,6 +37,7 @@ int64_t tsOpenMax = 0;
...
@@ -37,6 +37,7 @@ int64_t tsOpenMax = 0;
int64_t
tsStreamMax
=
0
;
int64_t
tsStreamMax
=
0
;
float
tsNumOfCores
=
0
;
float
tsNumOfCores
=
0
;
int64_t
tsTotalMemoryKB
=
0
;
int64_t
tsTotalMemoryKB
=
0
;
char
*
tsProcPath
=
NULL
;
void
osDefaultInit
()
{
void
osDefaultInit
()
{
taosSeedRand
(
taosSafeRand
());
taosSeedRand
(
taosSafeRand
());
...
...
source/os/src/osProc.c
浏览文件 @
ad398bb6
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#define _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#include "os.h"
#include "os.h"
static
char
*
tsProcPath
=
NULL
;
char
*
tsProcPath
=
NULL
;
int32_t
taosNewProc
(
char
**
args
)
{
int32_t
taosNewProc
(
char
**
args
)
{
int32_t
pid
=
fork
();
int32_t
pid
=
fork
();
...
...
tests/script/test.sh
浏览文件 @
ad398bb6
...
@@ -131,8 +131,8 @@ if [ -n "$FILE_NAME" ]; then
...
@@ -131,8 +131,8 @@ if [ -n "$FILE_NAME" ]; then
FLAG
=
"-v"
FLAG
=
"-v"
fi
fi
echo
valgrind
--tool
=
memcheck
--leak-check
=
full
--show-reachable
=
no
--track-origins
=
yes
--show-leak-kinds
=
all
-v
--workaround-gcc296-bugs
=
yes
--log-file
=
${
LOG_DIR
}
/valgrind-tsim.log
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
$FLAG
echo
valgrind
--tool
=
memcheck
--leak-check
=
full
--show-reachable
=
no
--track-origins
=
yes
--
child-silent-after-fork
=
yes
--
show-leak-kinds
=
all
-v
--workaround-gcc296-bugs
=
yes
--log-file
=
${
LOG_DIR
}
/valgrind-tsim.log
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
$FLAG
valgrind
--tool
=
memcheck
--leak-check
=
full
--show-reachable
=
no
--track-origins
=
yes
--show-leak-kinds
=
all
-v
--workaround-gcc296-bugs
=
yes
--log-file
=
${
LOG_DIR
}
/valgrind-tsim.log
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
$FLAG
valgrind
--tool
=
memcheck
--leak-check
=
full
--show-reachable
=
no
--track-origins
=
yes
--
child-silent-after-fork
=
yes
--
show-leak-kinds
=
all
-v
--workaround-gcc296-bugs
=
yes
--log-file
=
${
LOG_DIR
}
/valgrind-tsim.log
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
$FLAG
else
else
if
[[
$MULTIPROCESS
-eq
1
]]
;
then
if
[[
$MULTIPROCESS
-eq
1
]]
;
then
echo
"ExcuteCmd(multiprocess):"
$PROGRAM
-m
-c
$CFG_DIR
-f
$FILE_NAME
echo
"ExcuteCmd(multiprocess):"
$PROGRAM
-m
-c
$CFG_DIR
-f
$FILE_NAME
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录