Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

add back volume vacuum cleanup

Chris Lu82a5d3977896
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go
index c270ef9d4b..73664d27ee 100644
--- a/weed/topology/topology_vacuum.go
+++ b/weed/topology/topology_vacuum.go
@@ -152,12 +152,9 @@ func vacuumOneVolumeLayout(volumeLayout *VolumeLayout, c *Collection, garbageThr
if batchVacuumVolumeCheck(volumeLayout, vid, locationlist, garbageThreshold) {
if batchVacuumVolumeCompact(volumeLayout, vid, locationlist, preallocate) {
batchVacuumVolumeCommit(volumeLayout, vid, locationlist)
+ }else{
+ batchVacuumVolumeCleanup(volumeLayout, vid, locationlist)
}
}
}
}
-
-type VacuumVolumeResult struct {
- Result bool
- Error string
-}