Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
95289844
Commit
95289844
authored
Feb 27, 2012
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
May 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid taking the saintmode lock if the list empty.
Submitted by: DocWilco
parent
0938a2ed
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_backend.c
+4
-5
No files found.
bin/varnishd/cache_backend.c
View file @
95289844
...
...
@@ -268,16 +268,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
=
params
->
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
->
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