diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-10-26 09:35:54 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-25 21:35:54 -0700 |
| commit | c6f28993751f27ad25ecb77fe39de53e5ea6aca9 (patch) | |
| tree | 9363f2139ee9ef987b6b1300aa4c16f3648a478f /weed/shell/command_volume_check_disk.go | |
| parent | 51d462f2049b8c2c156e92ec53d4f7a0f913baa8 (diff) | |
| download | seaweedfs-c6f28993751f27ad25ecb77fe39de53e5ea6aca9.tar.xz seaweedfs-c6f28993751f27ad25ecb77fe39de53e5ea6aca9.zip | |
avoid fix missing of deleted needles (#3909)
Diffstat (limited to 'weed/shell/command_volume_check_disk.go')
| -rw-r--r-- | weed/shell/command_volume_check_disk.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go index 962566751..7195318fb 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 |
