fix: allow startup if the log directory does not exist

This commit is contained in:
Shengliang Guan 2022-04-26 16:27:59 +08:00
parent 68be5698a0
commit 8379c33a25
1 changed files with 0 additions and 6 deletions

View File

@ -145,12 +145,6 @@ static int32_t cfgCheckAndSetDir(SConfigItem *pItem, const char *inputDir) {
return -1;
}
if (taosRealPath(fullDir, NULL, PATH_MAX) != 0) {
terrno = TAOS_SYSTEM_ERROR(errno);
uError("failed to get realpath of dir:%s since %s", inputDir, terrstr());
return -1;
}
taosMemoryFreeClear(pItem->str);
pItem->str = strdup(fullDir);
if (pItem->str == NULL) {