diff options
Diffstat (limited to 'weed/filer/stream.go')
| -rw-r--r-- | weed/filer/stream.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/filer/stream.go b/weed/filer/stream.go index eb02d0e56..70a278ca5 100644 --- a/weed/filer/stream.go +++ b/weed/filer/stream.go @@ -43,13 +43,12 @@ func StreamContent(masterClient wdclient.HasLookupFileIdFunction, w io.Writer, c stats.FilerRequestHistogram.WithLabelValues("chunkDownload").Observe(time.Since(start).Seconds()) if err != nil { stats.FilerRequestCounter.WithLabelValues("chunkDownloadError").Inc() - glog.Errorf("read chunk: %v", err) return fmt.Errorf("read chunk: %v", err) } + _, err = w.Write(data) if err != nil { stats.FilerRequestCounter.WithLabelValues("chunkDownloadedError").Inc() - glog.Errorf("write chunk: %v", err) return fmt.Errorf("write chunk: %v", err) } stats.FilerRequestCounter.WithLabelValues("chunkDownload").Inc() |
