Browse Source

filer: fix hanging on read

pull/1524/head
Chris Lu 4 years ago
parent
commit
70af0ec24c
  1. 2
      weed/filer/stream.go

2
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)

Loading…
Cancel
Save