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
add writable checking
Chris Lu9ba52db5858c
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.goindex 3a6fcbae22..a7ef523368 100644--- a/weed/topology/topology_vacuum.go+++ b/weed/topology/topology_vacuum.go@@ -86,7 +86,14 @@ func (t *Topology) Vacuum(garbageThreshold string) int {for _, vl := range c.storageType2VolumeLayout.Items() {if vl != nil {volumeLayout := vl.(*VolumeLayout)+ writableSet := make(map[storage.VolumeId]bool)+ for _, id := range volumeLayout.writables {+ writableSet[id] = true+ }for vid, locationlist := range volumeLayout.vid2location {+ if _, isWritable := writableSet[vid]; !isWritable {+ continue+ }glog.V(0).Infof("check vacuum on collection:%s volume:%d", c.Name, vid)if batchVacuumVolumeCheck(volumeLayout, vid, locationlist, garbageThreshold) {if batchVacuumVolumeCompact(volumeLayout, vid, locationlist) {