]> err.no Git - varnish/commitdiff
Add asserts to find where WRW is leaking in ticket 390
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 26 Nov 2008 12:05:44 +0000 (12:05 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 26 Nov 2008 12:05:44 +0000 (12:05 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3445 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c
varnish-cache/bin/varnishd/cache_pool.c

index f99954964f261ff00c08d4bc59bc9ac1242bfbca..8a5a07c9b3ad1be82e838f871d7eed7721b3afd1 100644 (file)
@@ -176,6 +176,7 @@ cnt_deliver(struct sess *sp)
        sp->restarts = 0;
 
        RES_WriteObj(sp);
+       AZ(sp->wrk->wfd);
        HSH_Deref(sp->obj);
        sp->obj = NULL;
        sp->step = STP_DONE;
@@ -383,6 +384,7 @@ cnt_fetch(struct sess *sp)
        AN(sp->director);
        AZ(sp->vbe);
        i = Fetch(sp);
+       AZ(sp->wrk->wfd);
        AZ(sp->vbe);
        AN(sp->director);
 
@@ -799,6 +801,7 @@ cnt_pipe(struct sess *sp)
        assert(sp->handling == VCL_RET_PIPE);
 
        PipeSession(sp);
+       AZ(sp->wrk->wfd);
        sp->step = STP_DONE;
        return (0);
 }
@@ -1025,6 +1028,7 @@ CNT_Session(struct sess *sp)
                CHECK_OBJ_ORNULL(w->nobjhead, OBJHEAD_MAGIC);
        }
        WSL_Flush(w, 0);
+       AZ(w->wfd);
 }
 
 /*
index 3fe9a6e553319bb20226bb549d46945a802813a4..881ba0a65f3e71cbab4d53c3e83eda229f451227 100644 (file)
@@ -308,6 +308,8 @@ wrk_thread(void *priv)
                AN(w->wrq->func);
                w->lastused = NAN;
                w->wrq->func(w, w->wrq->priv);
+               AZ(w->wfd);
+               assert(w->wlp == w->wlb);
                w->wrq = NULL;
                Lck_Lock(&qp->mtx);
        }