You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/08/02 15:48:25 UTC

[GitHub] dangogh closed pull request #2614: Removed undef that was causing the query constraint to be ignored. This resolved #2613.

dangogh closed pull request #2614: Removed undef that was causing the query constraint to be ignored. This resolved #2613.
URL: https://github.com/apache/trafficcontrol/pull/2614
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/app/lib/API/Server.pm b/traffic_ops/app/lib/API/Server.pm
index b298f1610..69e064b7a 100644
--- a/traffic_ops/app/lib/API/Server.pm
+++ b/traffic_ops/app/lib/API/Server.pm
@@ -879,7 +879,7 @@ sub update_status {
 		# queue updates on child servers if server is ^EDGE or ^MID
 		if ( $server->type->name =~ m/^EDGE/ || $server->type->name =~ m/^MID/ ) {
 			my @cg_ids = $self->get_child_cachegroup_ids($server);
-			my $servers = $self->db->resultset('Server')->search( undef, { cachegroup => { -in => \@cg_ids }, cdn_id => $server->cdn_id } );
+			my $servers = $self->db->resultset('Server')->search( { cachegroup => { -in => \@cg_ids }, cdn_id => $server->cdn_id } );
 			$servers->update( { upd_pending => 1 } );
 			$msg .= " and queued updates on all child caches";
 		}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services