Chris Lu 4 years ago
parent
commit
93bcf56514
  1. 2
      weed/filer/reader_at.go

2
weed/filer/reader_at.go

@ -156,7 +156,7 @@ func (c *ChunkReadAt) doReadAt(p []byte, offset int64) (n int, err error) {
n += delta n += delta
} }
if err == nil && offset+int64(len(p)) > c.fileSize {
if err == nil && offset+int64(len(p)) >= c.fileSize {
err = io.EOF err = io.EOF
} }
// fmt.Printf("~~~ filled %d, err: %v\n\n", n, err) // fmt.Printf("~~~ filled %d, err: %v\n\n", n, err)

Loading…
Cancel
Save