From 42f631f5495bfb55817dffe7d8ef678be33a7cbe Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev Date: Thu, 20 May 2021 13:19:35 +0500 Subject: [PATCH] fix https://github.com/chrislusf/seaweedfs/issues/2046 --- weed/filer/stream.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/weed/filer/stream.go b/weed/filer/stream.go index 661a210ea..f1181740e 100644 --- a/weed/filer/stream.go +++ b/weed/filer/stream.go @@ -68,9 +68,12 @@ func StreamContent(masterClient wdclient.HasLookupFileIdFunction, w io.Writer, c func CheckAllChunkViews(chunkViews []*ChunkView, fileId2Url *map[string][]string, gErr *errgroup.Group) { for _, chunkView := range chunkViews { urlStrings := (*fileId2Url)[chunkView.FileId] - glog.V(9).Infof("Check chunk: %+v\n url: %v", chunkView, urlStrings) + glog.V(9).Infof("Check chunk: %+v\n url: %+v", chunkView, urlStrings) + if !chunkView.IsFullChunk() { + continue + } gErr.Go(func() error { - _, err := retriedFetchChunkData(urlStrings, chunkView.CipherKey, chunkView.IsGzipped, chunkView.IsFullChunk(), chunkView.Offset, int(chunkView.Size)) + _, err := retriedFetchChunkData(urlStrings, chunkView.CipherKey, chunkView.IsGzipped, false, 0, 2) return err }) }