trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [1/2] incubator-trafficcontrol git commit: correct unavailable server responses parameter
Date Wed, 03 May 2017 15:52:12 GMT
Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 3f93f1fa5 -> 3a3c2ccad


correct unavailable server responses parameter


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/f84838fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/f84838fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/f84838fb

Branch: refs/heads/master
Commit: f84838fbb85c19c39582dd66fda0fe6671763310
Parents: 3f93f1f
Author: Derek Gelinas <derek_gelinas@cable.comcast.com>
Authored: Wed May 3 10:40:52 2017 -0400
Committer: Derek Gelinas <derek_gelinas@cable.comcast.com>
Committed: Wed May 3 10:40:52 2017 -0400

----------------------------------------------------------------------
 .../app/db/migrations/20170205101432_cdn_table_domain_name.go   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/f84838fb/traffic_ops/app/db/migrations/20170205101432_cdn_table_domain_name.go
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/migrations/20170205101432_cdn_table_domain_name.go b/traffic_ops/app/db/migrations/20170205101432_cdn_table_domain_name.go
index 00bbee6..40696ad 100644
--- a/traffic_ops/app/db/migrations/20170205101432_cdn_table_domain_name.go
+++ b/traffic_ops/app/db/migrations/20170205101432_cdn_table_domain_name.go
@@ -199,10 +199,11 @@ func Up_20170205101432(txn *sql.Tx) {
 							} else {
 								parent_retry = "both"
 							}
-						} else {
+						} else if string(match[1]) == "dead_server_retry_response_codes" {
 							// unavailable_server_retry_responses is the only one that survives?
 							//	if string(match[1]) == "dead_server_retry_response_codes" {
-							pName := strings.Replace("mso."+string(match[1]), "dead", "unavailable", 1) // "mso.unavailable_server_retry_responses"
+							pName := strings.Replace("mso."+string(match[1]), "dead", "unavailable", 1) // "mso.unavailable_server_retry_response_codes"
+							pName = strings.Replace(pName, "response_codes", "responses", 1) // "mso.unavailable_server_retry_responses"
 							fmt.Println("INSERT INTO PARAMETER (name, config_file, value) VALUES ($1, $2, $3)
RETURNING id",
 								pName, "parent.config", string(match[2]))
 							newRow := txn.QueryRow("INSERT INTO PARAMETER (name, config_file, value) VALUES ($1,
$2, $3) RETURNING id",


Mime
View raw message