[master] 091d231 Cleanup the seen_methods bitfield when done with a task

Nils Goroll nils.goroll at uplex.de
Tue Jan 6 19:58:19 CET 2015


commit 091d23136ccad43440962af1f657313c54551fda
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Jan 6 19:58:12 2015 +0100

    Cleanup the seen_methods bitfield when done with a task

diff --git a/bin/varnishd/cache/cache_pool.c b/bin/varnishd/cache/cache_pool.c
index ee84862..015075e 100644
--- a/bin/varnishd/cache/cache_pool.c
+++ b/bin/varnishd/cache/cache_pool.c
@@ -409,6 +409,9 @@ Pool_Work_Thread(struct pool *pp, struct worker *wrk)
 
 		assert(wrk->pool == pp);
 		tp->func(wrk, tp->priv);
+
+		/* cleanup for next task */
+		wrk->seen_methods = 0;
 	}
 	wrk->pool = NULL;
 }



More information about the varnish-commit mailing list