You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/03/09 19:09:45 UTC

[37/44] incubator-trafficcontrol git commit: remove comments, debugs

remove comments, debugs


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

Branch: refs/heads/master
Commit: 0449913ca4f3b0544ab1dab96c0d5d9dc63d752d
Parents: 02ece63
Author: Jan van Doorn <jv...@apache.org>
Authored: Sun Feb 12 17:44:37 2017 +0000
Committer: Jan van Doorn <jv...@apache.org>
Committed: Fri Feb 17 17:49:11 2017 +0000

----------------------------------------------------------------------
 .../20170205101432_cdn_table_domain_name.go     | 25 +-------------------
 1 file changed, 1 insertion(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0449913c/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 072e225..3269f42 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
@@ -28,29 +28,6 @@ func doExec(stmt string, txn *sql.Tx) {
 	}
 }
 
-/*
- if ( $multi_site_origin_algorithm == 0 ) {
-1174                     $mso_algorithm = "consistent_hash";
-1175                     if ( $ds->{qstring_ignore} == 0 ) {
-1176                         $parent_qstring = "consider";
-1177                     }
-1178                 }
-1179                 elsif ( $multi_site_origin_algorithm == 1 ) {
-1180                     $mso_algorithm = "false";
-1181                 }
-1182                 elsif ( $multi_site_origin_algorithm == 2 ) {
-1183                     $mso_algorithm = "strict";
-1184                 }
-1185                 elsif ( $multi_site_origin_algorithm == 3 ) {
-1186                     $mso_algorithm = "true";
-1187                 }
-1188                 elsif ( $multi_site_origin_algorithm == 4 ) {
-1189                     $mso_algorithm = "latched";
-1190                 }
-1191                 else {
-1192                     $mso_algorithm = "consistent_hash";
-1193                 }
-*/
 // Up is executed when this migration is applied
 func Up_20170205101432(txn *sql.Tx) {
 
@@ -194,7 +171,7 @@ func Up_20170205101432(txn *sql.Tx) {
 					var newId int64
 					var ok bool
 					newId, ok = existingParam[string(match[1])+string(match[2])]
-					fmt.Printf("%s -> %v %v\n", string(match[1])+string(match[2]), newId, ok)
+					//	fmt.Printf("%s -> %v %v\n", string(match[1])+string(match[2]), newId, ok)
 					if !ok {
 						fmt.Println("INSERT INTO PARAMETER (name, config_file, value) VALUES ($1, $2, $3) RETURNING id", "mso."+
 							string(match[1]), "parent.config", string(match[2]))