]> err.no Git - varnish/commitdiff
Change statistics from gauge to counter
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 16 Sep 2006 22:00:35 +0000 (22:00 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 16 Sep 2006 22:00:35 +0000 (22:00 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1041 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index 47ef6942357a95c7f43124fe9d9d368e3048f54c..82c91453d9e89a3222290b5c3a72ffff21bad086 100644 (file)
@@ -197,7 +197,6 @@ wrk_thread(void *priv)
                        w->wrq = TAILQ_FIRST(&qp->req);
                        AN(w->wrq);
                        TAILQ_REMOVE(&qp->req, w->wrq, list);
-                       VSL_stats->n_wrk_queue--;
                        UNLOCK(&qp->mtx);
                        wrk_do_one(w);
                        LOCK(&qp->mtx);
@@ -257,11 +256,11 @@ WRK_QueueSession(struct sess *sp)
        }
        
        TAILQ_INSERT_TAIL(&qp->req, &sp->workreq, list);
-       VSL_stats->n_wrk_queue++;
        qp->overflow++;
        UNLOCK(&qp->mtx);
 
        LOCK(&tmtx);
+       VSL_stats->n_wrk_queue++;
        /* Can we create more threads ? */
        if (VSL_stats->n_wrk >= params->wthread_max) {
                VSL_stats->n_wrk_max++;