ocket8888 commented on a change in pull request #4709:
URL: https://github.com/apache/trafficcontrol/pull/4709#discussion_r438324078
##########
File path: traffic_ops/traffic_ops_golang/crconfig/servers.go
##########
@@ -204,15 +195,40 @@ and (st.name = 'REPORTED' or st.name = 'ONLINE' or
st.name = 'ADMIN_DOWN')
weight = *params.Weight
}
hashCount := int(weight * weightMultiplier)
- s.HashCount = &hashCount
+ s.Server.HashCount = &hashCount
- servers[host] = s
+ servers[id] = s
}
if err := rows.Err(); err != nil {
return nil, errors.New("Error iterating router param rows: " +
err.Error())
}
- return servers, nil
+ hostToServerMap := make(map[string]ServerUnion, len(servers))
+ for id, server := range servers {
+ infs, err := dbhelpers.GetServerInterfaces(id, tx)
Review comment:
Yeah, I'm already working on that
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]