[master] cc03355 Hint storage to Transient for hit-for-pass too

Tollef Fog Heen tfheen at varnish-cache.org
Thu May 2 10:32:08 CEST 2013


commit cc03355cf252398644c9dd707cec2d9581782059
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Thu May 2 10:15:01 2013 +0200

    Hint storage to Transient for hit-for-pass too

diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index cefc1ce..097f259 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -600,7 +600,7 @@ cnt_fetchbody(struct worker *wrk, struct req *req)
 	l += strlen("Content-Length: XxxXxxXxxXxxXxxXxx") + sizeof(void *);
 
 	if (bo->exp.ttl < cache_param->shortlived ||
-	    req->objcore == NULL)
+	    pass == 1)
 		bo->storage_hint = TRANSIENT_STORAGE;
 
 	AZ(bo->stats);



More information about the varnish-commit mailing list