aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-25 02:41:22 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-25 02:41:22 -0700
commit966df2ae276612b425e7847412847443dad3afac (patch)
tree9464dc0d30cdacd440eb96cde743a195b06fb5b2
parent6d87a0c5f588e814917c7f28e175ac1b9c0f2023 (diff)
downloadseaweedfs-966df2ae276612b425e7847412847443dad3afac.tar.xz
seaweedfs-966df2ae276612b425e7847412847443dad3afac.zip
purging skip EC volumes
-rw-r--r--weed/shell/command_volume_fsck.go3
1 files changed, 3 insertions, 0 deletions
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)
}