fix ReadAt

fix https://github.com/chrislusf/seaweedfs/issues/1344
This commit is contained in:
Chris Lu 2020-06-05 09:54:14 -07:00
parent 393ab07c7c
commit ebd1759741

View file

@ -76,7 +76,7 @@ func (c *ChunkReadAt) ReadAt(p []byte, offset int64) (n int, err error) {
n += readCount n += readCount
err = readErr err = readErr
if readCount == 0 { if readCount == 0 {
return n, nil return n, io.EOF
} }
} }
return return