提交 245b7157 编写于 作者: A artpaul

#455 also update tmp_files_info_path when files_info_path is changed

上级 84e4fb00
......@@ -14,16 +14,17 @@ namespace DB
{
FileChecker::FileChecker(const std::string & file_info_path_) :
files_info_path(file_info_path_)
FileChecker::FileChecker(const std::string & file_info_path_)
{
Poco::Path path(files_info_path);
tmp_files_info_path = path.parent().toString() + "tmp_" + path.getFileName();
setPath(file_info_path_);
}
void FileChecker::setPath(const std::string & file_info_path_)
{
files_info_path = file_info_path_;
Poco::Path path(files_info_path);
tmp_files_info_path = path.parent().toString() + "tmp_" + path.getFileName();
}
void FileChecker::update(const Poco::File & file)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册