diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-10-12 11:01:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-12 11:01:13 +0800 |
| commit | 2ff727a32d6d879a49ff5848b592518c96bb6403 (patch) | |
| tree | db952c7f054d44be208c5c4b4bc4c6769975a82c /weed/filer/stream.go | |
| parent | b9a446839a52739ddfdd072d0208c4dfe659056d (diff) | |
| parent | d5fcb0f474ac72389b89ba2d42adc4089b0f3e88 (diff) | |
| download | seaweedfs-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.go | 2 |
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) |
