From f2d9049e6afb699024f49173c8754c4923ac51a8 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 23 Oct 2022 13:05:37 -0700 Subject: [PATCH] fix size variable --- weed/storage/volume_write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/volume_write.go b/weed/storage/volume_write.go index 2e0fc4de1..954b06159 100644 --- a/weed/storage/volume_write.go +++ b/weed/storage/volume_write.go @@ -215,8 +215,8 @@ func (v *Volume) doDeleteRequest(n *needle.Needle) (Size, error) { if ok && nv.Size.IsValid() { var offset uint64 var err error + size := nv.Size if !v.hasRemoteFile { - size := nv.Size n.Data = nil n.AppendAtNs = uint64(time.Now().UnixNano()) offset, _, _, err = n.Append(v.DataBackend, v.Version())