mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add back volume vacuum cleanup
This commit is contained in:
parent
496a7398d1
commit
82a5d39778
|
@ -152,12 +152,9 @@ func vacuumOneVolumeLayout(volumeLayout *VolumeLayout, c *Collection, garbageThr
|
||||||
if batchVacuumVolumeCheck(volumeLayout, vid, locationlist, garbageThreshold) {
|
if batchVacuumVolumeCheck(volumeLayout, vid, locationlist, garbageThreshold) {
|
||||||
if batchVacuumVolumeCompact(volumeLayout, vid, locationlist, preallocate) {
|
if batchVacuumVolumeCompact(volumeLayout, vid, locationlist, preallocate) {
|
||||||
batchVacuumVolumeCommit(volumeLayout, vid, locationlist)
|
batchVacuumVolumeCommit(volumeLayout, vid, locationlist)
|
||||||
|
}else{
|
||||||
|
batchVacuumVolumeCleanup(volumeLayout, vid, locationlist)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type VacuumVolumeResult struct {
|
|
||||||
Result bool
|
|
||||||
Error string
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue