diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index 89378ba97..6ac4d63db 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 {