mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
webdav: return io.EOF when at end of a file
fix https://github.com/chrislusf/seaweedfs/issues/1344
This commit is contained in:
parent
68d39c86f1
commit
37f165d743
|
@ -489,11 +489,7 @@ func (f *WebDavFile) Read(p []byte) (readSize int, err error) {
|
|||
glog.V(3).Infof("WebDavFileSystem.Read %v: [%d,%d)", f.name, f.off, f.off+int64(readSize))
|
||||
f.off += int64(readSize)
|
||||
|
||||
if err == io.EOF {
|
||||
err = nil
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if err != nil && err != io.EOF {
|
||||
glog.Errorf("file read %s: %v", f.name, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue