未验证 提交 6d14b7c2 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #19515 from taosdata/enh/TS-2363-2.6

fix: support taosd -u with default dataDir
......@@ -124,11 +124,13 @@ int32_t main(int32_t argc, char *argv[]) {
printf("TDengine read global config failed\n");
exit(EXIT_FAILURE);
}
if (tfsInit(tsDiskCfg, tsDiskCfgNum) < 0) {
printf("failed to init TFS since %s\n", tstrerror(terrno));
exit(EXIT_FAILURE);
if (tsDiskCfgNum > 0) {
if (tfsInit(tsDiskCfg, tsDiskCfgNum) < 0) {
printf("failed to init TFS since %s\n", tstrerror(terrno));
exit(EXIT_FAILURE);
}
strncpy(tsDataDir, TFS_PRIMARY_PATH(), TSDB_FILENAME_LEN);
}
strncpy(tsDataDir, TFS_PRIMARY_PATH(), TSDB_FILENAME_LEN);
grantParseParameter("-u");
exit(EXIT_SUCCESS);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册