Ask Bjørn Hansen 8 anni fa
parent
commit
9c35b3c937
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      zones/picker.go

+ 3 - 0
zones/picker.go

@@ -55,7 +55,10 @@ func (zone *Zone) Picker(label *Label, qtype uint16, max int, location *targetin
 
 	if label.Test != nil {
 		servers, sum = zone.filterHealth(servers)
+		// sum re-check to mirror the label.Weight[] check below
 		if sum == 0 {
+			// todo: this is wrong for cname since it misses
+			// the 'max_hosts' setting
 			return servers
 		}
 	}