From 99b78a7cb70bcabb6c0789a25fcf10b84900275f Mon Sep 17 00:00:00 2001 From: alesapin Date: Thu, 9 Jun 2022 16:53:55 +0200 Subject: [PATCH] Fix stupid buge --- src/Disks/ObjectStorages/DiskObjectStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Disks/ObjectStorages/DiskObjectStorage.cpp b/src/Disks/ObjectStorages/DiskObjectStorage.cpp index 391ad450201..cf78d9b87eb 100644 --- a/src/Disks/ObjectStorages/DiskObjectStorage.cpp +++ b/src/Disks/ObjectStorages/DiskObjectStorage.cpp @@ -396,7 +396,7 @@ void DiskObjectStorage::removeMetadata(const String & path, std::vector tx->unlinkMetadata(path); tx->commit(); - if (hardlink_count <= 1) + if (hardlink_count == 0) { paths_to_remove = remote_objects; for (const auto & path_to_remove : paths_to_remove)