提交 1803d168 编写于 作者: O obdev 提交者: ob-robot

fix: ignore errno ENOENT when copy dump config file

上级 b2cc97f5
......@@ -268,7 +268,7 @@ int ObConfigManager::dump2file(const char* path) const
LOG_WARN("fail to backup history config file", KERRMSG, K(ret));
}
// 运行到这里的时候可能掉电,导致没有 conf 文件,需要 DBA 手工拷贝 tmp 文件到这里
if (0 != ::rename(tmp_path, path)) {
if (0 != ::rename(tmp_path, path) && errno != ENOENT) {
ret = OB_ERR_SYS;
LOG_WARN("fail to move tmp config file", KERRMSG, K(ret));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册