mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
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:
commit
f68a5e547a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user