Skip to content
This repository was archived by the owner on Nov 13, 2018. It is now read-only.

Commit b21ca77

Browse files
author
David Neuman
committed
Merge pull request #1420 from dneuman64/1.5.x
Backport -- Only queue updates for caches in the same CDN
2 parents b84aa5b + 26bcb26 commit b21ca77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.0
1+
1.5.1

traffic_ops/app/lib/UI/Server.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ sub postupdatequeue {
944944
my $server = $self->db->resultset('Server')->search( { id => $host, } )->single();
945945
my @edge_cache_groups = $self->db->resultset('Cachegroup')->search( { parent_cachegroup_id => $server->cachegroup->id } )->all();
946946
my @cg_ids = map { $_->id } @edge_cache_groups;
947-
$update = $self->db->resultset('Server')->search( { cachegroup => { -in => \@cg_ids } } );
947+
$update = $self->db->resultset('Server')->search( { cachegroup => { -in => \@cg_ids }, cdn_id => $server->cdn_id } );
948948
$message = "children of " . $server->host_name . " in the following cachegroups: " . join(", ", map { $_->name } @edge_cache_groups);
949949
}
950950
$update->update( { upd_pending => $setqueue } );

0 commit comments

Comments
 (0)