[master] 0f90ee2 Reset busyobj state to BOS_INVALID in VBO_GetBusyObj

Martin Blix Grydeland martin at varnish-software.com
Wed Mar 19 10:23:50 CET 2014


commit 0f90ee223daf97d4e6d83a78ae919a95e590bcca
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Mar 19 10:23:11 2014 +0100

    Reset busyobj state to BOS_INVALID in VBO_GetBusyObj
    
    Fixes: #1458

diff --git a/bin/varnishd/cache/cache_busyobj.c b/bin/varnishd/cache/cache_busyobj.c
index db1c7a1..d8be0f6 100644
--- a/bin/varnishd/cache/cache_busyobj.c
+++ b/bin/varnishd/cache/cache_busyobj.c
@@ -109,6 +109,7 @@ VBO_GetBusyObj(struct worker *wrk, const struct req *req)
 	CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC);
 	AZ(bo->refcount);
 
+	bo->state = BOS_INVALID;
 	bo->refcount = 1;
 
 	p = (void*)(bo + 1);



More information about the varnish-commit mailing list