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.

fix bug when collecting vacuum errors

Chris Luf7c22f0159b7
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go
index ba7c328c56..dd20e8cb2e 100644
--- a/weed/topology/topology_vacuum.go
+++ b/weed/topology/topology_vacuum.go
@@ -55,7 +55,8 @@ func batchVacuumVolumeCompact(vl *VolumeLayout, vid storage.VolumeId, locationli
isVacuumSuccess := true
for _ = range locationlist.list {
select {
- case _ = <-ch:
+ case canCommit := <-ch:
+ isVacuumSuccess = isVacuumSuccess && canCommit
case <-time.After(30 * time.Minute):
isVacuumSuccess = false
break