Commit f58652f3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

"Hit-for-pass" objects are not transient.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4178 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 8e45c702
......@@ -483,8 +483,13 @@ cnt_fetch(struct sess *sp)
handling = sp->handling;
if (sp->objhead == NULL)
/* This is a pass from vcl_recv */
transient = 1;
else if (sp->handling == VCL_RET_PASS)
/* A pass from vcl_fetch is not transient */
transient = 0;
else if (sp->handling == VCL_RET_DELIVER)
/* Regular object */
transient = 0;
else
transient = 1;
......@@ -582,7 +587,7 @@ cnt_fetch(struct sess *sp)
}
sp->obj->cacheable = 1;
if (sp->obj->objhead != NULL) {
if (!transient) {
VRY_Create(sp);
EXP_Insert(sp->obj);
AN(sp->obj->ban);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment