From 966df2ae276612b425e7847412847443dad3afac Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 25 Mar 2020 02:41:22 -0700 Subject: [PATCH] purging skip EC volumes --- weed/shell/command_volume_fsck.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go index e065767a3..41fc95653 100644 --- a/weed/shell/command_volume_fsck.go +++ b/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) }