mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-05-09 08:57:50 +08:00
avoid possible modified location list
fix issue 1 of https://github.com/chrislusf/seaweedfs/issues/2345
This commit is contained in:
parent
040443e2d1
commit
a067deaabc
@ -302,7 +302,7 @@ func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (*n
|
|||||||
}
|
}
|
||||||
counter++
|
counter++
|
||||||
if rand.Intn(counter) < 1 {
|
if rand.Intn(counter) < 1 {
|
||||||
vid, locationList = v, volumeLocationList
|
vid, locationList = v, volumeLocationList.Copy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user