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.

unnecessary skipping

chrislu3c0854e98670
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go
index 89378ba978..6ac4d63dbb 100644
--- a/weed/topology/volume_layout.go
+++ b/weed/topology/volume_layout.go
@@ -511,12 +511,7 @@ func (vl *VolumeLayout) SetVolumeCrowded(vid needle.VolumeId) {
vl.accessLock.RLock()
defer vl.accessLock.RUnlock()
- for _, v := range vl.writables {
- if v == vid {
- vl.setVolumeCrowded(vid)
- break
- }
- }
+ vl.setVolumeCrowded(vid)
}
type VolumeLayoutInfo struct {