Merge pull request #18727 from taosdata/szhou/fixbugs

fix: add default command line to start udfd when taosd is started directly from command line
This commit is contained in:
Shengliang Guan 2022-12-08 08:54:58 +08:00 committed by GitHub
commit e505bd50b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -88,11 +88,13 @@ static int32_t udfSpawnUdfd(SUdfdData *pData) {
} }
#ifdef WINDOWS #ifdef WINDOWS
if (strlen(path) == 0) { if (strlen(path) == 0) {
strcat(path, "udfd.exe"); strcat(path, "C:\\TDengine");
} else {
strcat(path, "\\udfd.exe");
} }
strcat(path, "\\udfd.exe");
#else #else
if (strlen(path) == 0) {
strcat(path, "/usr/bin");
}
strcat(path, "/udfd"); strcat(path, "/udfd");
#endif #endif
char *argsUdfd[] = {path, "-c", configDir, NULL}; char *argsUdfd[] = {path, "-c", configDir, NULL};