This commit is contained in:
Konstantin Lebedev
2020-11-12 04:10:06 +05:00
parent fc7baef5bb
commit 1eec5c8d5d
10 changed files with 362 additions and 353 deletions

View File

@@ -62,9 +62,8 @@ func (t *Topology) ToVolumeLocations() (volumeLocations []*master_pb.VolumeLocat
for _, d := range rack.Children() {
dn := d.(*DataNode)
volumeLocation := &master_pb.VolumeLocation{
Url: dn.Url(),
PublicUrl: dn.PublicUrl,
DataCenter: dn.GetDataCenter().String(),
Url: dn.Url(),
PublicUrl: dn.PublicUrl,
}
for _, v := range dn.GetVolumes() {
volumeLocation.NewVids = append(volumeLocation.NewVids, uint32(v.Id))