fix bug due to data racing on VidMap (#3606)
This commit is contained in:
@@ -43,8 +43,8 @@ type vidMap struct {
|
||||
cache *vidMap
|
||||
}
|
||||
|
||||
func newVidMap(dataCenter string) vidMap {
|
||||
return vidMap{
|
||||
func newVidMap(dataCenter string) *vidMap {
|
||||
return &vidMap{
|
||||
vid2Locations: make(map[uint32][]Location),
|
||||
ecVid2Locations: make(map[uint32][]Location),
|
||||
DataCenter: dataCenter,
|
||||
|
||||
Reference in New Issue
Block a user