avoid fix missing of deleted needles (#3909)
This commit is contained in:
committed by
GitHub
parent
51d462f204
commit
c6f2899375
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user