remove unused variable

update test

update
This commit is contained in:
feng lv 2021-09-22 02:52:34 +00:00
parent dfdf756b6a
commit f637f4f2d1
3 changed files with 8 additions and 6 deletions

View File

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

View File

@ -66,7 +66,6 @@ protected:
private:
std::unique_ptr<FileLogSettings> filelog_settings;
const String path;
bool path_is_directory = false;
const String format_name;
Poco::Logger * log;

View File

@ -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;"