提交 63a9bb62 编写于 作者: H HaHaJeff 提交者: ob-robot

fixed not remove tmp directory when create palf failed.

上级 e320d2f2
......@@ -505,6 +505,10 @@ int PalfEnvImpl::create_directory(const char *base_dir)
} else {
PALF_LOG(INFO, "prepare_directory_for_creating_ls success", K(ret), K(base_dir));
}
if (OB_FAIL(ret)) {
FileDirectoryUtils::delete_directory_rec(tmp_base_dir);
FileDirectoryUtils::delete_directory_rec(base_dir);
}
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册