Skip to content

Commit

Permalink
avoid fix missing of deleted needles (#3909)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlebedev committed Oct 26, 2022
1 parent 51d462f commit c6f2899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weed/shell/command_volume_check_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6f2899

Please sign in to comment.