mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 00:10:42 +01:00
readerAt need to use the right offset
fix https://github.com/chrislusf/seaweedfs/issues/2259
This commit is contained in:
1 parent
0b2a92d371
commit
8f7d2d317f
1 file changed
+2
-1
@@ -132,9 +132,10 @@ func NewChunkStreamReader(filerClient filer_pb.FilerClient, chunks []*filer_pb.F
|
||||
}
|
||||
|
||||
func (c *ChunkStreamReader) ReadAt(p []byte, off int64) (n int, err error) {
|
||||
if err = c.prepareBufferFor(c.logicOffset); err != nil {
|
||||
if err = c.prepareBufferFor(off); err != nil {
|
||||
return
|
||||
}
|
||||
c.logicOffset = off
|
||||
return c.Read(p)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user