From 82a5d3977896d4eb715de66b00d03980e4e40ed4 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 18 Oct 2018 23:02:58 -0700 Subject: [PATCH] add back volume vacuum cleanup --- weed/topology/topology_vacuum.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go index c270ef9d4..73664d27e 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 -}