Browse Source

add back volume vacuum cleanup

pull/753/head
Chris Lu 6 years ago
parent
commit
82a5d39778
  1. 7
      weed/topology/topology_vacuum.go

7
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
}
Loading…
Cancel
Save