Skip to content

Commit

Permalink
Fix something stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Mar 17, 2022
1 parent edbdefe commit 68ef49e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Storages/MergeTree/MergeTreeData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
}
Expand Down

0 comments on commit 68ef49e

Please sign in to comment.