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.

do not forget to vacuum if cluster changes

Chris Lu3626ec5cf7cc
diff --git a/go/topology/topology_event_handling.go b/go/topology/topology_event_handling.go
index 5f5faf04eb..3879fbaba7 100644
--- a/go/topology/topology_event_handling.go
+++ b/go/topology/topology_event_handling.go
@@ -20,8 +20,8 @@ func (t *Topology) StartRefreshWritableVolumes(garbageThreshold string) {
}()
go func(garbageThreshold string) {
c := time.Tick(15 * time.Minute)
- if t.IsLeader() {
- for _ = range c {
+ for _ = range c {
+ if t.IsLeader() {
t.Vacuum(garbageThreshold)
}
}