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 compilation error

Chris Lua7faefd4cee4
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go
index c030cb5585..ba7c328c56 100644
--- a/weed/topology/topology_vacuum.go
+++ b/weed/topology/topology_vacuum.go
@@ -88,9 +88,9 @@ func (t *Topology) Vacuum(garbageThreshold string) int {
volumeLayout := vl.(*VolumeLayout)
for vid, locationlist := range volumeLayout.vid2location {
- vl.accessLock.RLock()
+ volumeLayout.accessLock.RLock()
isReadOnly, hasValue := volumeLayout.readonlyVolumes[vid]
- vl.accessLock.RUnlock()
+ volumeLayout.accessLock.RUnlock()
if hasValue && isReadOnly {
continue