mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 15:37:52 +08:00
fix concurrent map reads
This commit is contained in:
@@ -218,7 +218,7 @@ func (vl *VolumeLayout) ensureCorrectWritables(vid needle.VolumeId) {
|
|||||||
|
|
||||||
func (vl *VolumeLayout) isAllWritable(vid needle.VolumeId) bool {
|
func (vl *VolumeLayout) isAllWritable(vid needle.VolumeId) bool {
|
||||||
for _, dn := range vl.vid2location[vid].list {
|
for _, dn := range vl.vid2location[vid].list {
|
||||||
if v, found := dn.volumes[vid]; found {
|
if v, getError := dn.GetVolumesById(vid); getError == nil {
|
||||||
if v.ReadOnly {
|
if v.ReadOnly {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user