aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/stream.go
diff options
context:
space:
mode:
authorhilimd <68371223+hilimd@users.noreply.github.com>2020-10-12 11:01:13 +0800
committerGitHub <noreply@github.com>2020-10-12 11:01:13 +0800
commit2ff727a32d6d879a49ff5848b592518c96bb6403 (patch)
treedb952c7f054d44be208c5c4b4bc4c6769975a82c /weed/filer/stream.go
parentb9a446839a52739ddfdd072d0208c4dfe659056d (diff)
parentd5fcb0f474ac72389b89ba2d42adc4089b0f3e88 (diff)
downloadseaweedfs-2ff727a32d6d879a49ff5848b592518c96bb6403.tar.xz
seaweedfs-2ff727a32d6d879a49ff5848b592518c96bb6403.zip
Merge pull request #25 from chrislusf/master
sync
Diffstat (limited to 'weed/filer/stream.go')
-rw-r--r--weed/filer/stream.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/stream.go b/weed/filer/stream.go
index f6e2a7643..a41aebe22 100644
--- a/weed/filer/stream.go
+++ b/weed/filer/stream.go
@@ -34,7 +34,7 @@ func StreamContent(masterClient *wdclient.MasterClient, w io.Writer, chunks []*f
urlStrings := fileId2Url[chunkView.FileId]
data, err := retriedFetchChunkData(urlStrings, chunkView.CipherKey, chunkView.IsGzipped, chunkView.IsFullChunk(), chunkView.Offset, int(chunkView.Size))
- if err == nil {
+ if err != nil {
return err
}
w.Write(data)