mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
purging skip EC volumes
This commit is contained in:
parent
6d87a0c5f5
commit
966df2ae27
|
@ -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…
Reference in a new issue