[3.0] 5683344 Hint storage to Transient for hit-for-pass too

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


commit 5683344fc3facbb7c807b2590c21a00cbfed0d81
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Thu May 2 10:32:45 2013 +0200

    Hint storage to Transient for hit-for-pass too

diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index ba16417..599d0e7 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -787,7 +787,7 @@ cnt_fetchbody(struct sess *sp)
 	 */
 	l += strlen("Content-Length: XxxXxxXxxXxxXxxXxx") + sizeof(void *);
 
-	if (sp->wrk->exp.ttl < params->shortlived || sp->objcore == NULL)
+	if (sp->wrk->exp.ttl < params->shortlived || pass == 1)
 		sp->wrk->storage_hint = TRANSIENT_STORAGE;
 
 	sp->obj = STV_NewObject(sp, sp->wrk->storage_hint, l,



More information about the varnish-commit mailing list