From 333cdce485ee5389306527cc8c1b40fdcf884137 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 13 Aug 2021 02:57:14 -0700 Subject: [PATCH] add verbose message --- 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 27c253209..9e778b918 100644 --- a/weed/shell/command_volume_fsck.go +++ b/weed/shell/command_volume_fsck.go @@ -313,6 +313,9 @@ func (c *commandVolumeFsck) collectFilerFileIds(tempFolder string, volumeIdToSer }, func(entry *filer_pb.FullEntry, outputChan chan interface{}) (err error) { dChunks, mChunks, resolveErr := filer.ResolveChunkManifest(filer.LookupFn(c.env), entry.Entry.Chunks, 0, math.MaxInt64) if resolveErr != nil { + if verbose { + fmt.Fprintf(writer, "resolving manifest chunks in %s: %v\n", util.NewFullPath(entry.Dir, entry.Entry.Name), resolveErr) + } return nil } dChunks = append(dChunks, mChunks...)