diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-10 16:02:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-10 16:02:10 -0700 |
| commit | 70af0ec24c795ef26e9d85813b9b8eecc22d73c5 (patch) | |
| tree | 2342fbc6b60f3bcd0d37389c8dc96f18fee74c89 | |
| parent | cff8bb6554287d50ef3fdc83dd5668ad262d3a79 (diff) | |
| download | seaweedfs-70af0ec24c795ef26e9d85813b9b8eecc22d73c5.tar.xz seaweedfs-70af0ec24c795ef26e9d85813b9b8eecc22d73c5.zip | |
filer: fix hanging on read
| -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) |
