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
96e2a95e
Commit
96e2a95e
authored
Feb 27, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid taking the saintmode lock if the list empty.
Submitted by: DocWilco
parent
c082835a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
cache_backend.c
bin/varnishd/cache/cache_backend.c
+4
-5
No files found.
bin/varnishd/cache/cache_backend.c
View file @
96e2a95e
...
...
@@ -261,16 +261,15 @@ vbe_Healthy(const struct vdi_simple *vs, const struct sess *sp)
/* VRT/VCC sets threshold to UINT_MAX to mark that it's not
* specified by VCL (thus use param).
*/
if
(
vs
->
vrt
->
saintmode_threshold
==
UINT_MAX
)
threshold
=
vs
->
vrt
->
saintmode_threshold
;
if
(
threshold
==
UINT_MAX
)
threshold
=
cache_param
->
saintmode_threshold
;
else
threshold
=
vs
->
vrt
->
saintmode_threshold
;
if
(
backend
->
admin_health
==
ah_healthy
)
threshold
=
UINT_MAX
;
/* Saintmode is disabled */
if
(
threshold
==
0
)
/* Saintmode is disabled
, or list is empty
*/
if
(
threshold
==
0
||
VTAILQ_EMPTY
(
&
backend
->
troublelist
)
)
return
(
1
);
if
(
sp
->
req
->
objcore
==
NULL
)
...
...
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