Browse Source

wdclient need to have ec shard info on initial dump

pull/991/head
Chris Lu 6 years ago
parent
commit
ac14cd5ad0
  1. 3
      weed/topology/topology_map.go

3
weed/topology/topology_map.go

@ -68,6 +68,9 @@ func (t *Topology) ToVolumeLocations() (volumeLocations []*master_pb.VolumeLocat
for _, v := range dn.GetVolumes() { for _, v := range dn.GetVolumes() {
volumeLocation.NewVids = append(volumeLocation.NewVids, uint32(v.Id)) volumeLocation.NewVids = append(volumeLocation.NewVids, uint32(v.Id))
} }
for _, s := range dn.GetEcShards() {
volumeLocation.NewVids = append(volumeLocation.NewVids, uint32(s.VolumeId))
}
volumeLocations = append(volumeLocations, volumeLocation) volumeLocations = append(volumeLocations, volumeLocation)
} }
} }

Loading…
Cancel
Save