mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
able to print partial file id
address https://github.com/chrislusf/seaweedfs/issues/1552
This commit is contained in:
parent
720b1d9b88
commit
e73d6c9526
|
@ -102,6 +102,12 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.
|
||||||
totalOrphanChunkCount += uint64(len(orphanFileIds))
|
totalOrphanChunkCount += uint64(len(orphanFileIds))
|
||||||
totalOrphanDataSize += orphanDataSize
|
totalOrphanDataSize += orphanDataSize
|
||||||
|
|
||||||
|
if *verbose {
|
||||||
|
for _, fid := range orphanFileIds {
|
||||||
|
fmt.Fprintf(writer, "%sxxxxxxxx\n", fid)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if *applyPurging && len(orphanFileIds) > 0 {
|
if *applyPurging && len(orphanFileIds) > 0 {
|
||||||
if vinfo.isEcVolume {
|
if vinfo.isEcVolume {
|
||||||
fmt.Fprintf(writer, "Skip purging for Erasure Coded volumes.\n")
|
fmt.Fprintf(writer, "Skip purging for Erasure Coded volumes.\n")
|
||||||
|
|
Loading…
Reference in a new issue