Browse Source

skip purging from ec volumes

pull/2530/head
chrislu 3 years ago
parent
commit
94e5c0a454
  1. 3
      weed/shell/command_volume_fsck.go

3
weed/shell/command_volume_fsck.go

@ -212,7 +212,8 @@ func (c *commandVolumeFsck) findExtraChunksInVolumeServers(volumeIdToVInfo map[u
if *applyPurging && len(orphanFileIds) > 0 { if *applyPurging && len(orphanFileIds) > 0 {
if vinfo.isEcVolume { if vinfo.isEcVolume {
fmt.Fprintf(writer, "Skip purging for Erasure Coded volumes.\n")
fmt.Fprintf(writer, "Skip purging for Erasure Coded volume %d.\n", volumeId)
continue
} }
if inUseCount == 0 { if inUseCount == 0 {
if err := deleteVolume(c.env.option.GrpcDialOption, needle.VolumeId(volumeId), vinfo.server); err != nil { if err := deleteVolume(c.env.option.GrpcDialOption, needle.VolumeId(volumeId), vinfo.server); err != nil {

Loading…
Cancel
Save