webdav: fix writing file

fix https://github.com/chrislusf/seaweedfs/issues/1114
This commit is contained in:
Chris Lu 2019-12-07 07:56:51 -08:00
parent 0eda75fa2c
commit e2a8cdfc48

View File

@ -444,7 +444,7 @@ func (f *WebDavFile) Write(buf []byte) (int, error) {
return nil return nil
}) })
if err != nil { if err == nil {
glog.V(3).Infof("WebDavFileSystem.Write %v: written [%d,%d)", f.name, f.off, f.off+int64(len(buf))) glog.V(3).Infof("WebDavFileSystem.Write %v: written [%d,%d)", f.name, f.off, f.off+int64(len(buf)))
f.off += int64(len(buf)) f.off += int64(len(buf))
} }