提交 47e6a753 编写于 作者: K kailixu

fix: primary disk for taosd -u

上级 d572295e
......@@ -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", tstrerror(terrno));
return -1;
}
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.
先完成此消息的编辑!
想要评论请 注册