Allow buckets without List access

This commit is contained in:
Alexey Milovidov 2023-12-13 00:10:58 +01:00
parent 2043791ed7
commit f11b90e7bb

View File

@ -829,8 +829,13 @@ void StorageMergeTree::loadDeduplicationLog()
auto disk = getDisks()[0];
std::string path = fs::path(relative_data_path) / "deduplication_logs";
/// If either there is already a deduplication log, or we will be able to use it.
if (disk->exists(path) || !disk->isReadOnly())
{
deduplication_log = std::make_unique<MergeTreeDeduplicationLog>(path, settings->non_replicated_deduplication_window, format_version, disk);
deduplication_log->load();
}
}
void StorageMergeTree::loadMutations()