wdclient need to have ec shard info on initial dump

This commit is contained in:
Chris Lu 2019-05-26 01:01:04 -07:00
parent b58e25e588
commit ac14cd5ad0

View file

@ -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)
} }
} }