This commit is contained in:
Chris Lu
2019-06-04 22:04:10 -07:00
parent 2215e81be7
commit ca8a2bb534
5 changed files with 7 additions and 7 deletions

View File

@@ -139,7 +139,7 @@ func (t *Topology) ListEcServersByCollection(collection string) (dataNodes []str
dateNodeMap := make(map[string]bool)
for _, ecVolumeLocation := range t.ecShardMap {
if ecVolumeLocation.Collection == collection {
for _, locations := range ecVolumeLocation.Locations{
for _, locations := range ecVolumeLocation.Locations {
for _, loc := range locations {
dateNodeMap[string(loc.Id())] = true
}