提交 7873386c 编写于 作者: S slguan

Fix the #issue 220, TDengine can't start when /var/lib/taos does not exist

上级 ff518338
......@@ -107,6 +107,10 @@ int dnodeInitSystem() {
}
strcpy(tsDirectory, dataDir);
if (stat(dataDir, &dirstat) < 0) {
mkdir(dataDir, 0755);
}
taosCreateTierDirectory();
sprintf(mgmtDirectory, "%s/mgmt", tsDirectory);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册