r2013 - trunk/varnish-cache/bin/varnishd

cecilihf at projects.linpro.no cecilihf at projects.linpro.no
Mon Sep 24 15:21:28 CEST 2007


Author: cecilihf
Date: 2007-09-24 15:21:27 +0200 (Mon, 24 Sep 2007)
New Revision: 2013

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Re-enable the code causing bug #161 (which is now fixed)


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2007-09-24 13:18:04 UTC (rev 2012)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2007-09-24 13:21:27 UTC (rev 2013)
@@ -431,7 +431,6 @@
 	/* Experimental. Reduce health parameter of backend towards zero
 	 * if it has been more than a minute since it was checked. */
 	CHECK_OBJ_NOTNULL(sp->backend, BACKEND_MAGIC);
-if (0) {
 	time_diff = TIM_mono() - sp->backend->last_check;
 	minutes = time_diff / 60;
 	if (minutes > sp->backend->minute_limit) {
@@ -439,7 +438,6 @@
 		sp->backend->health = (int)((double)sp->backend->health / 2);
 		VBE_UpdateHealth(sp, NULL, 0);
 	}
-}
 
 	VCL_hit_method(sp);
 




More information about the varnish-commit mailing list