[4.0] 02cf2c5 Disassociate obj->http from bo->ws once the object is setup

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:21 CEST 2014


commit 02cf2c5b60ef57311db84bfc2f4c21544646d987
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 3d1fbfe..e5c7921 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