lock dn.volumes

This commit is contained in:
Chris Lu
2016-05-19 23:32:56 -07:00
parent f8b03c45ef
commit 57c85adc53
4 changed files with 21 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ func (t *Topology) ToVolumeMap() interface{} {
for _, d := range rack.Children() {
dn := d.(*DataNode)
var volumes []interface{}
for _, v := range dn.volumes {
for _, v := range dn.GetVolumes() {
volumes = append(volumes, v)
}
dataNodes[d.Id()] = volumes