run ci test again
This commit is contained in:
parent
db8e829d56
commit
ad398bb626
|
@ -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[];
|
||||||
|
|
|
@ -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) {
|
||||||
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) {
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue