From ac14cd5ad0615271c514966fa69618e78797d753 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 26 May 2019 01:01:04 -0700 Subject: [PATCH] wdclient need to have ec shard info on initial dump --- weed/topology/topology_map.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/topology/topology_map.go b/weed/topology/topology_map.go index 7db11ea14..37a88c9ed 100644 --- a/weed/topology/topology_map.go +++ b/weed/topology/topology_map.go @@ -68,6 +68,9 @@ func (t *Topology) ToVolumeLocations() (volumeLocations []*master_pb.VolumeLocat for _, v := range dn.GetVolumes() { 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) } }