From 245b7157231730b37c6574960c04441c71e19d16 Mon Sep 17 00:00:00 2001 From: artpaul Date: Mon, 6 Feb 2017 17:09:54 +0500 Subject: [PATCH] #455 also update tmp_files_info_path when files_info_path is changed --- dbms/src/Common/FileChecker.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dbms/src/Common/FileChecker.cpp b/dbms/src/Common/FileChecker.cpp index a484087dae..b0c2ad02d6 100644 --- a/dbms/src/Common/FileChecker.cpp +++ b/dbms/src/Common/FileChecker.cpp @@ -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) -- GitLab