[master] 7af7eee Reset vsl_log.wid in VSL_Setup.

Martin Blix Grydeland martin at varnish-cache.org
Thu Jun 13 12:41:23 CEST 2013


commit 7af7eeebe0612167476869397aa817f159cd67a1
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Thu May 16 14:53:57 2013 +0200

    Reset vsl_log.wid in VSL_Setup.
    
    This ensures that background threads like expire and ban lurker logs
    using ID 0.

diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index 278b29d..5b33dad 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -356,6 +356,7 @@ VSL_Setup(struct vsl_log *vsl, void *ptr, size_t len)
 	vsl->wle = ptr;
 	vsl->wle += len / sizeof(*vsl->wle);
 	vsl->wlr = 0;
+	vsl->wid = 0;
 }
 
 /*--------------------------------------------------------------------*/



More information about the varnish-commit mailing list