aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2025-10-29 05:57:51 +0500
committerGitHub <noreply@github.com>2025-10-28 17:57:51 -0700
commitd19eca71eb1da170b4398d5a207f6951c8fa20d5 (patch)
tree6de00c383b68030bb60d43acf1f216864c6dd616
parent20e0d91037de0851c090448ed2c8f0dd2e8bc97e (diff)
downloadseaweedfs-d19eca71eb1da170b4398d5a207f6951c8fa20d5.tar.xz
seaweedfs-d19eca71eb1da170b4398d5a207f6951c8fa20d5.zip
[master] vaccum fix warn (#7312)
-rw-r--r--weed/storage/volume_vacuum.go2
1 files changed, 1 insertions, 1 deletions
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)
}