[4.0] dabd65a Be consistent with when the BerespBody timestamp is taken.

Martin Blix Grydeland martin at varnish-software.com
Tue Jun 24 11:31:42 CEST 2014


commit dabd65a91b8737c0d71311f68464ed33c249e5f0
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue May 6 10:43:44 2014 +0200

    Be consistent with when the BerespBody timestamp is taken.

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index ac4c478..f8e2848 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -547,7 +547,6 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
 		assert(bo->state == BOS_REQ_DONE);
 		HSH_Unbusy(&wrk->stats, obj->objcore);
 	}
-	VSLb_ts_busyobj(bo, "BerespBody", W_TIM_real(wrk));
 
 	/* Recycle the backend connection before setting BOS_FINISHED to
 	   give predictable backend reuse behavior for varnishtest */
@@ -557,6 +556,7 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
 	}
 
 	VBO_setstate(bo, BOS_FINISHED);
+	VSLb_ts_busyobj(bo, "BerespBody", W_TIM_real(wrk));
 	return (F_STP_DONE);
 }
 



More information about the varnish-commit mailing list