Browse Source

purging skip EC volumes

pull/1255/head
Chris Lu 5 years ago
parent
commit
966df2ae27
  1. 3
      weed/shell/command_volume_fsck.go

3
weed/shell/command_volume_fsck.go

@ -98,6 +98,9 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.
totalOrphanDataSize += orphanDataSize
if *applyPurging && len(orphanFileIds) > 0 {
if vinfo.isEcVolume {
fmt.Fprintf(writer, "Skip purging for Erasure Coded volumes.\n")
}
if err = c.purgeFileIdsForOneVolume(volumeId, orphanFileIds, writer); err != nil {
return fmt.Errorf("purge for volume %d: %v\n", volumeId, err)
}

Loading…
Cancel
Save