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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix filtering by volume id
chrislu48382676d276
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.goindex e53aa28533..3850b89160 100644--- a/weed/topology/topology_vacuum.go+++ b/weed/topology/topology_vacuum.go@@ -185,10 +185,13 @@ func (t *Topology) Vacuum(grpcDialOption grpc.DialOption, garbageThreshold floatfor _, vl := range c.storageType2VolumeLayout.Items() {if vl != nil {volumeLayout := vl.(*VolumeLayout)- if volumeId > 0 && volumeLayout.Lookup(needle.VolumeId(volumeId)) == nil {- continue+ if volumeId > 0 {+ if volumeLayout.Lookup(needle.VolumeId(volumeId)) != nil {+ t.vacuumOneVolumeLayout(grpcDialOption, volumeLayout, c, garbageThreshold, preallocate)+ }+ } else {+ t.vacuumOneVolumeLayout(grpcDialOption, volumeLayout, c, garbageThreshold, preallocate)}- t.vacuumOneVolumeLayout(grpcDialOption, volumeLayout, c, garbageThreshold, preallocate)}}}