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

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

fix: primary disk for taosd -u
......@@ -24,6 +24,7 @@ extern "C" {
#include "tlog.h"
#include "trpc.h"
#include "tglobal.h"
#include "tfs.h"
#include "dnode.h"
#include "vnode.h"
......
......@@ -120,7 +120,15 @@ int32_t main(int32_t argc, char *argv[]) {
if (0 != dump_cluster) {
taosInitGlobalCfg();
taosReadGlobalCfg();
if (!taosReadGlobalCfg()) {
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);
}
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.
先完成此消息的编辑!
想要评论请 注册