mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #9192 from nvartolomei/nv/format-version-file-typo
Fix typo in file name when reporting version file duplicates
This commit is contained in:
commit
c5d5c9c11e
@ -196,14 +196,15 @@ MergeTreeData::MergeTreeData(
|
||||
{
|
||||
Poco::File(path).createDirectories();
|
||||
Poco::File(path + "detached").createDirectory();
|
||||
if (Poco::File{path + "format_version.txt"}.exists())
|
||||
auto current_version_file_path = path + "format_version.txt";
|
||||
if (Poco::File{current_version_file_path}.exists())
|
||||
{
|
||||
if (!version_file_path.empty())
|
||||
{
|
||||
LOG_ERROR(log, "Duplication of version file " << version_file_path << " and " << path << "format_file.txt");
|
||||
LOG_ERROR(log, "Duplication of version file " << version_file_path << " and " << current_version_file_path);
|
||||
throw Exception("Multiple format_version.txt file", ErrorCodes::CORRUPTED_DATA);
|
||||
}
|
||||
version_file_path = path + "format_version.txt";
|
||||
version_file_path = current_version_file_path;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user