]> err.no Git - varnish/commitdiff
A temporary work-around for #161
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 21 Sep 2007 10:38:01 +0000 (10:38 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 21 Sep 2007 10:38:01 +0000 (10:38 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1978 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index 3e90146c91150dc0daabb7f2e78c3b25b0669f72..809cb0e1610cd664c8f80eec31b725b70af479de 100644 (file)
@@ -429,6 +429,7 @@ cnt_hit(struct sess *sp)
        /* 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 @@ cnt_hit(struct sess *sp)
                sp->backend->health = (int)((double)sp->backend->health / 2);
                VBE_UpdateHealth(sp, NULL, 0);
        }
+}
 
        VCL_hit_method(sp);