avoid possible modified location list
fix issue 1 of https://github.com/chrislusf/seaweedfs/issues/2345
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user