mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-23 18:49:17 +08:00
unnecessary skipping
This commit is contained in:
parent
654b8210f7
commit
3c0854e986
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user