You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ra...@apache.org on 2018/10/01 16:47:26 UTC

[trafficcontrol] 08/11: Fix TO Go GET steering to only primary origins

This is an automated email from the ASF dual-hosted git repository.

rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 4452b8f4bec5bff23322c96682a77d5f24e43eaf
Author: Robert Butts <ro...@apache.org>
AuthorDate: Fri Sep 28 17:17:44 2018 -0600

    Fix TO Go GET steering to only primary origins
---
 traffic_ops/traffic_ops_golang/steering/steering.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/traffic_ops/traffic_ops_golang/steering/steering.go b/traffic_ops/traffic_ops_golang/steering/steering.go
index b7301e5..fd5dd44 100644
--- a/traffic_ops/traffic_ops_golang/steering/steering.go
+++ b/traffic_ops/traffic_ops_golang/steering/steering.go
@@ -214,6 +214,7 @@ FROM
   JOIN coordinate c ON c.id = o.coordinate
 WHERE
   o.deliveryservice = ANY($1)
+  AND o.is_primary
 `
 	rows, err := tx.Query(qry, pq.Array(dsIDs))
 	if err != nil {