1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 15:16:51 +02:00

fix filer.remote.sync on a S3 cloud mount

fix https://github.com/seaweedfs/seaweedfs/issues/4175
This commit is contained in:
chrislu 2023-02-01 20:44:00 -08:00
parent 0932437a1c
commit 84e9934bf9

View file

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