From cf3ec5ad40c9715f8a374b2bea222d548e210f08 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Tue, 6 Dec 2022 11:42:53 +0800 Subject: [PATCH] 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}; -- GitLab