aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_check_disk.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-10-26 09:35:54 +0500
committerGitHub <noreply@github.com>2022-10-25 21:35:54 -0700
commitc6f28993751f27ad25ecb77fe39de53e5ea6aca9 (patch)
tree9363f2139ee9ef987b6b1300aa4c16f3648a478f /weed/shell/command_volume_check_disk.go
parent51d462f2049b8c2c156e92ec53d4f7a0f913baa8 (diff)
downloadseaweedfs-c6f28993751f27ad25ecb77fe39de53e5ea6aca9.tar.xz
seaweedfs-c6f28993751f27ad25ecb77fe39de53e5ea6aca9.zip
avoid fix missing of deleted needles (#3909)
Diffstat (limited to 'weed/shell/command_volume_check_disk.go')
-rw-r--r--weed/shell/command_volume_check_disk.go2
1 files changed, 1 insertions, 1 deletions
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