From d19eca71eb1da170b4398d5a207f6951c8fa20d5 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Wed, 29 Oct 2025 05:57:51 +0500 Subject: [PATCH] [master] vaccum fix warn (#7312) --- weed/storage/volume_vacuum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go index 1d6cdf9e0..e5e0691e3 100644 --- a/weed/storage/volume_vacuum.go +++ b/weed/storage/volume_vacuum.go @@ -510,7 +510,7 @@ func (v *Volume) copyDataBasedOnIndexFile(srcDatName, srcIdxName, dstDatName, da return fmt.Errorf("volume %s unexpected new data size: %d does not match size of content minus deleted: %d", v.Id.String(), dstDatSize, expectedContentSize) } - } else { + } else if v.nm.DeletedSize() > v.nm.ContentSize() { glog.Warningf("volume %s content size: %d less deleted size: %d, new size: %d", v.Id.String(), v.nm.ContentSize(), v.nm.DeletedSize(), dstDatSize) }