From cf3ec5ad40c9715f8a374b2bea222d548e210f08 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Tue, 6 Dec 2022 11:42:53 +0800 Subject: [PATCH 1/2] fix: add default command line to start udfd when taosd is started directly from command line --- source/libs/function/src/tudf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/libs/function/src/tudf.c b/source/libs/function/src/tudf.c index c78ec5b999..73f5f8ce68 100644 --- a/source/libs/function/src/tudf.c +++ b/source/libs/function/src/tudf.c @@ -88,11 +88,13 @@ static int32_t udfSpawnUdfd(SUdfdData *pData) { } #ifdef WINDOWS if (strlen(path) == 0) { - strcat(path, "udfd.exe"); - } else { - strcat(path, "\\udfd.exe"); + strcat(path, "C:\\TDengine") } + strcat(path, "\\udfd.exe"); #else + if (strlen(path) == 0) { + strcat(path, "/usr/bin"); + } strcat(path, "/udfd"); #endif char *argsUdfd[] = {path, "-c", configDir, NULL}; From 9789adc439d800b2a3eacaf9cafd1fc75af7157c Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Thu, 8 Dec 2022 07:36:10 +0800 Subject: [PATCH 2/2] fix: fix windows compilation error --- source/libs/function/src/tudf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/function/src/tudf.c b/source/libs/function/src/tudf.c index 73f5f8ce68..32e57565d4 100644 --- a/source/libs/function/src/tudf.c +++ b/source/libs/function/src/tudf.c @@ -88,7 +88,7 @@ static int32_t udfSpawnUdfd(SUdfdData *pData) { } #ifdef WINDOWS if (strlen(path) == 0) { - strcat(path, "C:\\TDengine") + strcat(path, "C:\\TDengine"); } strcat(path, "\\udfd.exe"); #else