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
2d666b03
Commit
2d666b03
authored
Oct 02, 2019
by
Nils Goroll
Committed by
Reza Naghibi
Jun 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make VFP_Close() idempotent
required for #3009
parent
92455b9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cache_fetch_proc.c
bin/varnishd/cache/cache_fetch_proc.c
+3
-2
No files found.
bin/varnishd/cache/cache_fetch_proc.c
View file @
2d666b03
...
...
@@ -118,13 +118,14 @@ VFP_Setup(struct vfp_ctx *vc, struct worker *wrk)
void
VFP_Close
(
struct
vfp_ctx
*
vc
)
{
struct
vfp_entry
*
vfe
;
struct
vfp_entry
*
vfe
,
*
tmp
;
VTAILQ_FOREACH
(
vfe
,
&
vc
->
vfp
,
list
)
{
VTAILQ_FOREACH
_SAFE
(
vfe
,
&
vc
->
vfp
,
list
,
tmp
)
{
if
(
vfe
->
vfp
->
fini
!=
NULL
)
vfe
->
vfp
->
fini
(
vc
,
vfe
);
VSLb
(
vc
->
wrk
->
vsl
,
SLT_VfpAcct
,
"%s %ju %ju"
,
vfe
->
vfp
->
name
,
(
uintmax_t
)
vfe
->
calls
,
(
uintmax_t
)
vfe
->
bytes_out
);
VTAILQ_REMOVE
(
&
vc
->
vfp
,
vfe
,
list
);
}
}
...
...
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