Browse Source

avoid fix missing of deleted needles (#3909)

pull/3911/head
Konstantin Lebedev 2 years ago
committed by GitHub
parent
commit
c6f2899375
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/shell/command_volume_check_disk.go

2
weed/shell/command_volume_check_disk.go

@ -146,7 +146,7 @@ func (c *commandVolumeCheckDisk) doVolumeCheckDisk(minuend, subtrahend *needle_m
var counter int var counter int
minuend.AscendingVisit(func(value needle_map.NeedleValue) error { minuend.AscendingVisit(func(value needle_map.NeedleValue) error {
counter++ counter++
if _, found := subtrahend.Get(value.Key); !found {
if _, found := subtrahend.Get(value.Key); !found && value.Size.IsValid() {
missingNeedles = append(missingNeedles, value) missingNeedles = append(missingNeedles, value)
} }
return nil return nil

Loading…
Cancel
Save