Browse Source

fix size variable

pull/3895/head
chrislu 2 years ago
parent
commit
f2d9049e6a
  1. 2
      weed/storage/volume_write.go

2
weed/storage/volume_write.go

@ -215,8 +215,8 @@ func (v *Volume) doDeleteRequest(n *needle.Needle) (Size, error) {
if ok && nv.Size.IsValid() { if ok && nv.Size.IsValid() {
var offset uint64 var offset uint64
var err error var err error
size := nv.Size
if !v.hasRemoteFile { if !v.hasRemoteFile {
size := nv.Size
n.Data = nil n.Data = nil
n.AppendAtNs = uint64(time.Now().UnixNano()) n.AppendAtNs = uint64(time.Now().UnixNano())
offset, _, _, err = n.Append(v.DataBackend, v.Version()) offset, _, _, err = n.Append(v.DataBackend, v.Version())

Loading…
Cancel
Save