diff --git a/src/Storages/FileLog/StorageFileLog.cpp b/src/Storages/FileLog/StorageFileLog.cpp index 9711b8dbfc4..0404442c1ee 100644 --- a/src/Storages/FileLog/StorageFileLog.cpp +++ b/src/Storages/FileLog/StorageFileLog.cpp @@ -81,7 +81,6 @@ void StorageFileLog::init() } else if (std::filesystem::is_directory(path)) { - path_is_directory = true; /// Just consider file with depth 1 for (const auto & dir_entry : std::filesystem::directory_iterator{path}) { diff --git a/src/Storages/FileLog/StorageFileLog.h b/src/Storages/FileLog/StorageFileLog.h index 5825f3b5094..795180ba9eb 100644 --- a/src/Storages/FileLog/StorageFileLog.h +++ b/src/Storages/FileLog/StorageFileLog.h @@ -66,7 +66,6 @@ protected: private: std::unique_ptr filelog_settings; const String path; - bool path_is_directory = false; const String format_name; Poco::Logger * log; diff --git a/tests/queries/0_stateless/02023_storage_filelog.sh b/tests/queries/0_stateless/02023_storage_filelog.sh index d6a9d77f796..908d77f5c26 100755 --- a/tests/queries/0_stateless/02023_storage_filelog.sh +++ b/tests/queries/0_stateless/02023_storage_filelog.sh @@ -47,18 +47,22 @@ cp ${user_files_path}/logs/a.txt ${user_files_path}/logs/d.txt mv ${user_files_path}/logs/a.txt ${user_files_path}/logs/e.txt rm ${user_files_path}/logs/e.txt -for i in 1 2 3 4 5 +# the max value of reschedule time is 32s, so 40s should +# always be enough to finish streamToViews +for _ in {1..400} do - sleep 1 + sleep 0.1 done ${CLICKHOUSE_CLIENT} --query "select * from mv order by k;" echo 111, 111 >> ${user_files_path}/logs/c.txt -for i in 1 2 3 4 5 +# the max value of reschedule time is 32s, so 40s should +# always be enough to finish streamToViews +for _ in {1..400} do - sleep 1 + sleep 0.1 done ${CLICKHOUSE_CLIENT} --query "select * from mv order by k;"