[master] c9c0572 Use VSL_Setup() once more
Poul-Henning Kamp
phk at varnish-cache.org
Mon Feb 13 22:50:40 CET 2012
commit c9c0572849473c712e46424e717f3267f0e24a1c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Feb 13 21:50:32 2012 +0000
Use VSL_Setup() once more
diff --git a/bin/varnishd/cache/cache_wrk.c b/bin/varnishd/cache/cache_wrk.c
index d421740..6862a1f 100644
--- a/bin/varnishd/cache/cache_wrk.c
+++ b/bin/varnishd/cache/cache_wrk.c
@@ -141,8 +141,7 @@ wrk_thread_real(void *priv, unsigned shm_workspace, unsigned thread_workspace)
memset(w, 0, sizeof *w);
w->magic = WORKER_MAGIC;
w->lastused = NAN;
- w->vsl->wlb = w->vsl->wlp = wlog;
- w->vsl->wle = wlog + (sizeof wlog) / 4;
+ VSL_Setup(w->vsl, wlog, sizeof wlog);
AZ(pthread_cond_init(&w->cond, NULL));
WS_Init(w->aws, "wrk", ws, thread_workspace);
More information about the varnish-commit
mailing list