Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
f464a94c
Commit
f464a94c
authored
Mar 07, 2017
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revive use of the VSL HitPass tag.
parent
acd21984
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
cache_hash.c
bin/varnishd/cache/cache_hash.c
+2
-0
c00081.vtc
bin/varnishtest/tests/c00081.vtc
+6
-0
No files found.
bin/varnishd/cache/cache_hash.c
View file @
f464a94c
...
...
@@ -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
++
;
...
...
bin/varnishtest/tests/c00081.vtc
View file @
f464a94c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment