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
6972c55b
Commit
6972c55b
authored
Dec 26, 2018
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify priv_task tear-down
Someone should triple-check that it is indeed safe.
parent
9f768696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cache_vrt_priv.c
bin/varnishd/cache/cache_vrt_priv.c
+5
-2
No files found.
bin/varnishd/cache/cache_vrt_priv.c
View file @
6972c55b
...
@@ -206,8 +206,11 @@ VCL_TaskLeave(const struct vcl *vcl, struct vrt_privs *privs)
...
@@ -206,8 +206,11 @@ VCL_TaskLeave(const struct vcl *vcl, struct vrt_privs *privs)
AN
(
vcl
);
AN
(
vcl
);
CHECK_OBJ_NOTNULL
(
privs
,
VRT_PRIVS_MAGIC
);
CHECK_OBJ_NOTNULL
(
privs
,
VRT_PRIVS_MAGIC
);
VRBT_FOREACH_SAFE
(
vp
,
vrt_priv_tree
,
&
privs
->
privs
,
vp1
)
{
/* NB: We don't bother removing entries as we finish them because it's
* a costly operation. Instead we safely walk the whole tree and clear
* the head at the very end.
*/
VRBT_FOREACH_SAFE
(
vp
,
vrt_priv_tree
,
&
privs
->
privs
,
vp1
)
VRT_priv_fini
(
vp
->
priv
);
VRT_priv_fini
(
vp
->
priv
);
}
ZERO_OBJ
(
privs
,
sizeof
*
privs
);
ZERO_OBJ
(
privs
,
sizeof
*
privs
);
}
}
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