Browse Source

able to print partial file id

address https://github.com/chrislusf/seaweedfs/issues/1552
pull/1560/head
Chris Lu 4 years ago
parent
commit
e73d6c9526
  1. 6
      weed/shell/command_volume_fsck.go

6
weed/shell/command_volume_fsck.go

@ -102,6 +102,12 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.
totalOrphanChunkCount += uint64(len(orphanFileIds))
totalOrphanDataSize += orphanDataSize
if *verbose {
for _, fid := range orphanFileIds {
fmt.Fprintf(writer, "%sxxxxxxxx\n", fid)
}
}
if *applyPurging && len(orphanFileIds) > 0 {
if vinfo.isEcVolume {
fmt.Fprintf(writer, "Skip purging for Erasure Coded volumes.\n")

Loading…
Cancel
Save