avoid fix missing of deleted needles (#3909)

This commit is contained in:
Konstantin Lebedev 2022-10-26 09:35:54 +05:00 committed by GitHub
parent 51d462f204
commit c6f2899375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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