[master] 1d4ca91 Disassociate obj->http from bo->ws once the object is setup

Poul-Henning Kamp phk at FreeBSD.org
Wed Jun 25 22:29:20 CEST 2014


commit 1d4ca91c7cbc36a7c9a9dab939397a30f478c36c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Jun 25 10:17:22 2014 +0000

    Disassociate obj->http from bo->ws once the object is setup

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index a768170..cd2b40d 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -164,6 +164,9 @@ vbf_beresp2obj(struct busyobj *bo)
 	else
 		obj->last_modified = floor(bo->exp.t_origin);
 
+	/* Disassociate the obj from the bo's workspace */
+	hp2->ws = NULL;
+
 	return (0);
 }
 



More information about the varnish-commit mailing list