From c6f28993751f27ad25ecb77fe39de53e5ea6aca9 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Wed, 26 Oct 2022 09:35:54 +0500 Subject: [PATCH] avoid fix missing of deleted needles (#3909) --- weed/shell/command_volume_check_disk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go index 962566751..7195318fb 100644 --- a/weed/shell/command_volume_check_disk.go +++ b/weed/shell/command_volume_check_disk.go @@ -146,7 +146,7 @@ func (c *commandVolumeCheckDisk) doVolumeCheckDisk(minuend, subtrahend *needle_m var counter int minuend.AscendingVisit(func(value needle_map.NeedleValue) error { counter++ - if _, found := subtrahend.Get(value.Key); !found { + if _, found := subtrahend.Get(value.Key); !found && value.Size.IsValid() { missingNeedles = append(missingNeedles, value) } return nil