Browse Source

fix filer.remote.sync on a S3 cloud mount

fix https://github.com/seaweedfs/seaweedfs/issues/4175
pull/4177/head
chrislu 2 years ago
parent
commit
84e9934bf9
  1. 3
      weed/filer/stream.go

3
weed/filer/stream.go

@ -300,6 +300,9 @@ func (c *ChunkStreamReader) prepareBufferFor(offset int64) (err error) {
if c.bufferOffset <= offset && offset < c.bufferOffset+int64(len(c.buffer)) { if c.bufferOffset <= offset && offset < c.bufferOffset+int64(len(c.buffer)) {
return nil return nil
} }
if c.chunkView == nil {
return io.EOF
}
// fmt.Printf("fetch for offset %d\n", offset) // fmt.Printf("fetch for offset %d\n", offset)
c.chunkView = c.chunkView.Next c.chunkView = c.chunkView.Next

Loading…
Cancel
Save