You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/05/09 17:58:56 UTC
[1/3] incubator-trafficcontrol git commit: This closes #554
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/master bc4ce954d -> f37cb0425
This closes #554
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/f37cb042
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/f37cb042
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/f37cb042
Branch: refs/heads/master
Commit: f37cb04256396943a042d830d5030ec2dfcac2f0
Parents: 0bfb5cd
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 9 11:58:49 2017 -0600
Committer: Dewayne Richardson <de...@apache.org>
Committed: Tue May 9 11:58:49 2017 -0600
----------------------------------------------------------------------
----------------------------------------------------------------------
[3/3] incubator-trafficcontrol git commit: add some sorting to parent
config and metadata
Posted by de...@apache.org.
add some sorting to parent config and metadata
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/8f86419e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/8f86419e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/8f86419e
Branch: refs/heads/master
Commit: 8f86419e77e0fcf787c66fb678502048b91bd687
Parents: bc4ce95
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Mon May 8 09:38:44 2017 -0400
Committer: Dewayne Richardson <de...@apache.org>
Committed: Tue May 9 11:58:49 2017 -0600
----------------------------------------------------------------------
.../app/lib/API/Configs/ApacheTrafficServer.pm | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/8f86419e/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index 3eff576..ede4ffb 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -120,7 +120,7 @@ sub get_config_metadata {
$config_file_obj->{$config_file}->{'scope'} = $scope;
}
- foreach my $config_file ( keys %{ $config_file_obj } ) {
+ foreach my $config_file ( sort keys %{ $config_file_obj } ) {
push ( @config_files, $config_file_obj->{$config_file} );
}
@@ -1938,7 +1938,7 @@ sub parent_dot_config {
}
if ( $server_type =~ m/^MID/ ) {
my @unique_origins;
- foreach my $ds ( @{ $data->{dslist} } ) {
+ foreach my $ds ( sort @{ $data->{dslist} } ) {
my $xml_id = $ds->{ds_xml_id};
my $origin_shield = $ds->{origin_shield};
my $multi_site_origin = $ds->{multi_site_origin} || 0;
@@ -2031,7 +2031,7 @@ sub parent_dot_config {
$parent_info = $self->parent_data($server_obj);
my %done = ();
- foreach my $ds ( @{ $data->{dslist} } ) {
+ foreach my $ds ( sort @{ $data->{dslist} } ) {
my $org = $ds->{org};
next if !defined $org || $org eq "";
next if $done{$org};
@@ -2071,12 +2071,12 @@ sub parent_dot_config {
}
my %seen;
@parent_info = grep { !$seen{$_}++ } @parent_info;
- my $parents = 'parent="' . join( '', @parent_info ) . '"';
+ my $parents = 'parent="' . join( '', sort @parent_info ) . '"';
my $secparents = '';
if ( scalar @secondary_parent_info > 0 ) {
my %seen;
@secondary_parent_info = grep { !$seen{$_}++ } @secondary_parent_info;
- $secparents = 'secondary_parent="' . join( '', @secondary_parent_info ) . '"';
+ $secparents = 'secondary_parent="' . join( '', sort @secondary_parent_info ) . '"';
}
my $round_robin = 'round_robin=consistent_hash';
my $go_direct = 'go_direct=false';
@@ -2099,7 +2099,7 @@ sub parent_dot_config {
my %seen;
@parent_info = grep { !$seen{$_}++ } @parent_info;
$text .= "dest_domain=.";
- $text .= " parent=\"" . join( '', @parent_info ) . "\"";
+ $text .= " parent=\"" . join( '', sort @parent_info ) . "\"";
$text .= " round_robin=consistent_hash go_direct=false";
}
else { # default to old situation.
@@ -2110,7 +2110,7 @@ sub parent_dot_config {
}
my %seen;
@parent_info = grep { !$seen{$_}++ } @parent_info;
- $text .= " parent=\"" . join( '', @parent_info ) . "\"";
+ $text .= " parent=\"" . join( '', sort @parent_info ) . "\"";
$text .= " round_robin=urlhash go_direct=false";
}
[2/3] incubator-trafficcontrol git commit: remove unneeded logging
Posted by de...@apache.org.
remove unneeded logging
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0bfb5cd2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0bfb5cd2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0bfb5cd2
Branch: refs/heads/master
Commit: 0bfb5cd2107875110c7bceb5188c08ef3d8d4443
Parents: 8f86419
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Mon May 8 09:42:24 2017 -0400
Committer: Dewayne Richardson <de...@apache.org>
Committed: Tue May 9 11:58:49 2017 -0600
----------------------------------------------------------------------
traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0bfb5cd2/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index ede4ffb..0635435 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -332,7 +332,6 @@ sub get_scope {
else {
$scope = $self->db->resultset('Parameter')->search( { -and => [ name => 'scope', config_file => $fname ] } )->get_column('value')->first();
if ( !defined($scope) ) {
- $self->app->log->error("Filename not found. Setting Server scope.");
$scope = 'servers';
}
}