Browse Source

fix a data race bug

pull/279/head
tnextday 10 years ago
parent
commit
9332bdcdeb
  1. 2
      weed/topology/volume_layout.go

2
weed/topology/volume_layout.go

@ -139,7 +139,7 @@ func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (*s
}
}
}
return &vid, count, locationList, nil
return &vid, count, locationList.Duplicate(), nil
}
func (vl *VolumeLayout) GetActiveVolumeCount(option *VolumeGrowOption) int {

Loading…
Cancel
Save