mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
Fix test_encrypted_disk
This commit is contained in:
parent
a274bec0fa
commit
2ee349f29c
@ -1162,16 +1162,9 @@ void IMergeTreeDataPart::loadColumns(bool require)
|
||||
bool exists = metadata_manager->exists("columns.txt");
|
||||
if (!exists)
|
||||
{
|
||||
auto & manager_ref = *metadata_manager;
|
||||
if ((require || part_type == Type::Compact) && !data_part_storage->exists("columns.txt"))
|
||||
throw Exception("No columns.txt in part (data_part_storage) " + name + ", expected path " + path + " on drive " + data_part_storage->getName() +
|
||||
" manager " + demangle(typeid(manager_ref).name()),
|
||||
ErrorCodes::NO_FILE_IN_DATA_PART);
|
||||
|
||||
/// We can get list of columns only from columns.txt in compact parts.
|
||||
if (require || part_type == Type::Compact)
|
||||
throw Exception("No columns.txt in part " + name + ", expected path " + path + " on drive " + data_part_storage->getName() +
|
||||
" manager " + demangle(typeid(manager_ref).name()),
|
||||
throw Exception("No columns.txt in part " + name + ", expected path " + path + " on drive " + data_part_storage->getName(),
|
||||
ErrorCodes::NO_FILE_IN_DATA_PART);
|
||||
|
||||
/// If there is no file with a list of columns, write it down.
|
||||
|
Loading…
Reference in New Issue
Block a user