Merge pull request #457 from yandex/issue-455

#455 also update tmp_files_info_path when files_info_path is changed
This commit is contained in:
Artemkin Pavel 2017-02-06 17:34:28 +05:00 committed by GitHub
commit f68a5e547a

View File

@ -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)