mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 19:19:11 +08:00
webdav: fix writing file
fix https://github.com/chrislusf/seaweedfs/issues/1114
This commit is contained in:
parent
0eda75fa2c
commit
e2a8cdfc48
@ -444,7 +444,7 @@ func (f *WebDavFile) Write(buf []byte) (int, error) {
|
||||
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)))
|
||||
f.off += int64(len(buf))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user