Update comments based on review feedback

This commit is contained in:
Bryan Boreham
2019-10-17 10:38:58 +00:00
parent 6ccbd2d0cf
commit b9c71f30d6

View File

@@ -189,7 +189,7 @@ type Report struct {
Job Topology
DNS DNSRecords `json:"DNS,omitempty" deepequal:"nil==empty"`
// For release 1.11.6, probes accidentally sent DNS records labeled "nodes".
// Backwards-compatibility for an accident in commit 951629a / release 1.11.6.
BugDNS DNSRecords `json:"nodes,omitempty"`
// Sampling data for this report.
@@ -547,6 +547,7 @@ func (r Report) upgradeNamespaces() Report {
func (r Report) upgradeDNSRecords() Report {
// For release 1.11.6, probes accidentally sent DNS records labeled "nodes".
// Translate the incorrect version here. Accident was in commit 951629a.
if len(r.BugDNS) > 0 {
r.DNS = r.BugDNS
r.BugDNS = nil