mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-31 09:20:50 +01:00
file read report EOF
fix https://github.com/chrislusf/seaweedfs/issues/1344
This commit is contained in:
1 parent
1069b325dd
commit
93bcf56514
1 file changed
+1
-1
@@ -156,7 +156,7 @@ func (c *ChunkReadAt) doReadAt(p []byte, offset int64) (n int, err error) {
|
||||
n += delta
|
||||
}
|
||||
|
||||
if err == nil && offset+int64(len(p)) > c.fileSize {
|
||||
if err == nil && offset+int64(len(p)) >= c.fileSize {
|
||||
err = io.EOF
|
||||
}
|
||||
// fmt.Printf("~~~ filled %d, err: %v\n\n", n, err)
|
||||
|
||||
Reference in new issue
Block a user