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
0ed12c40
Commit
0ed12c40
authored
Aug 30, 2016
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove spurious assert on VCL release
parent
c60f7379
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
cache_vcl.c
bin/varnishd/cache/cache_vcl.c
+6
-2
No files found.
bin/varnishd/cache/cache_vcl.c
View file @
0ed12c40
...
@@ -510,8 +510,12 @@ VRT_rel_vcl(VRT_CTX, struct vclref **refp)
...
@@ -510,8 +510,12 @@ VRT_rel_vcl(VRT_CTX, struct vclref **refp)
vcl
=
ctx
->
vcl
;
vcl
=
ctx
->
vcl
;
CHECK_OBJ_NOTNULL
(
vcl
,
VCL_MAGIC
);
CHECK_OBJ_NOTNULL
(
vcl
,
VCL_MAGIC
);
assert
(
vcl
==
ref
->
vcl
);
assert
(
vcl
==
ref
->
vcl
);
assert
(
vcl
->
temp
==
VCL_TEMP_WARM
||
vcl
->
temp
==
VCL_TEMP_BUSY
||
vcl
->
temp
==
VCL_TEMP_COOLING
);
/* NB: A VCL may be released by a VMOD at any time, but it must happen
* after a warmup and before the end of a cooldown. The release may or
* may not happen while the same thread holds the temperature lock, so
* instead we check that all references are gone in VCL_Nuke.
*/
Lck_Lock
(
&
vcl_mtx
);
Lck_Lock
(
&
vcl_mtx
);
assert
(
!
VTAILQ_EMPTY
(
&
vcl
->
ref_list
));
assert
(
!
VTAILQ_EMPTY
(
&
vcl
->
ref_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