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 18:12:12 UTC

[3/3] incubator-trafficcontrol git commit: run dispersion sleep after update check

run dispersion sleep after update check


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

Branch: refs/heads/master
Commit: 4833c5717f23f9a9b2507a02dfed12032ebfc705
Parents: f37cb04
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Mon May 8 10:18:14 2017 -0400
Committer: Dewayne Richardson <de...@apache.org>
Committed: Tue May 9 12:12:08 2017 -0600

----------------------------------------------------------------------
 traffic_ops/bin/traffic_ops_ort.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4833c571/traffic_ops/bin/traffic_ops_ort.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/bin/traffic_ops_ort.pl b/traffic_ops/bin/traffic_ops_ort.pl
index 014a0b6..433b6b6 100755
--- a/traffic_ops/bin/traffic_ops_ort.pl
+++ b/traffic_ops/bin/traffic_ops_ort.pl
@@ -867,7 +867,6 @@ sub check_syncds_state {
 		else {
 			$reval_in_use = 0;
 		}
-		( $dispersion > 0 ) && &sleep_timer($random_duration);
 
 		$upd_ref = &lwp_get($uri);
 		if ( $upd_ref =~ m/^\d{3}$/ ) {
@@ -889,6 +888,7 @@ sub check_syncds_state {
 		}
 
 		if ( $upd_pending == 1 ) {
+			( $dispersion > 0 ) && &sleep_timer($random_duration);
 			( $log_level >> $ERROR ) && print "ERROR Traffic Ops is signaling that an update is waiting to be applied.\n";
 			$syncds_update = $UPDATE_TROPS_NEEDED;