Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

avoid fix missing of deleted needles (#3909)

Konstantin Lebedevc6f28993751f
diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go
index 9625667519..7195318fbd 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