From 68ef49ea51bb5cf837e5214c89d99ceb1b0f393b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 17 Mar 2022 05:57:13 +0100 Subject: [PATCH] Fix something stupid --- src/Storages/MergeTree/MergeTreeData.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index 7f407199e819..03a215e1aef6 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -283,10 +283,7 @@ MergeTreeData::MergeTreeData( if (disk->exists(current_version_file_path)) { if (!version_file.first.empty()) - { - LOG_ERROR(log, "Duplication of version file {} and {}", fullPath(version_file.second, version_file.first), current_version_file_path); - throw Exception("Multiple format_version.txt file", ErrorCodes::CORRUPTED_DATA); - } + throw Exception(ErrorCodes::CORRUPTED_DATA, "Duplication of version file {} and {}", fullPath(version_file.second, version_file.first), current_version_file_path); version_file = {current_version_file_path, disk}; } }