fix size variable

This commit is contained in:
chrislu 2022-10-23 13:05:37 -07:00
parent 184fbb6c50
commit f2d9049e6a

View file

@ -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())