Commit f464a94c authored by Geoff Simmons's avatar Geoff Simmons

Revive use of the VSL HitPass tag.

parent acd21984
......@@ -438,6 +438,8 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp,
assert(oc->objhead == oh);
if (oc->flags & OC_F_HFP) {
wrk->stats->cache_hitpass++;
VSLb(req->vsl, SLT_HitPass, "%u",
ObjGetXID(wrk, oc));
oc = NULL;
} else if (oc->flags & OC_F_PASS) {
wrk->stats->cache_hitmiss++;
......
......@@ -29,6 +29,10 @@ varnish v1 -vcl+backend {
} -start
logexpect l1 -v v1 -g vxid {
expect 1003 * HitPass "^1002$"
} -start
client c1 {
txreq
rxresp
......@@ -45,6 +49,8 @@ client c1 {
expect resp.http.miss == True
} -run
logexpect l1 -wait
varnish v1 -expect MAIN.cache_hitpass == 1
varnish v1 -expect MAIN.cache_miss == 2
varnish v1 -expect MAIN.cache_hitmiss == 0
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