r1978 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Sep 21 12:38:01 CEST 2007


Author: phk
Date: 2007-09-21 12:38:01 +0200 (Fri, 21 Sep 2007)
New Revision: 1978

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
A temporary work-around for #161


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2007-09-21 09:49:44 UTC (rev 1977)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2007-09-21 10:38:01 UTC (rev 1978)
@@ -429,6 +429,7 @@
 	/* 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) {
@@ -436,6 +437,7 @@
 		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