Browse Source

avoid possible modified location list

fix issue 1 of https://github.com/chrislusf/seaweedfs/issues/2345
pull/2348/head
Chris Lu 3 years ago
parent
commit
a067deaabc
  1. 2
      weed/topology/volume_layout.go

2
weed/topology/volume_layout.go

@ -302,7 +302,7 @@ func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (*n
}
counter++
if rand.Intn(counter) < 1 {
vid, locationList = v, volumeLocationList
vid, locationList = v, volumeLocationList.Copy()
}
}
}

Loading…
Cancel
Save