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
32d2c5ca
Commit
32d2c5ca
authored
Apr 16, 2019
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce noise in VBP_Update_Backend
parent
dd2e9fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cache_backend_probe.c
bin/varnishd/cache/cache_backend_probe.c
+6
-3
No files found.
bin/varnishd/cache/cache_backend_probe.c
View file @
32d2c5ca
...
...
@@ -152,6 +152,7 @@ vbp_has_poked(struct vbp_target *vt)
void
VBP_Update_Backend
(
struct
vbp_target
*
vt
)
{
const
struct
director
*
dir
;
unsigned
i
=
0
,
chg
;
char
bits
[
10
];
...
...
@@ -169,7 +170,8 @@ VBP_Update_Backend(struct vbp_target *vt)
bits
[
i
]
=
'\0'
;
assert
(
i
<
sizeof
bits
);
if
(
vt
->
backend
->
director
==
NULL
)
{
dir
=
vt
->
backend
->
director
;
if
(
dir
==
NULL
)
{
Lck_Unlock
(
&
vbp_mtx
);
return
;
}
...
...
@@ -178,8 +180,9 @@ VBP_Update_Backend(struct vbp_target *vt)
chg
=
(
i
!=
vt
->
backend
->
sick
);
vt
->
backend
->
sick
=
i
;
AN
(
dir
->
vcl_name
);
VSL
(
SLT_Backend_health
,
0
,
"%s %s %s %s %u %u %u %.6f %.6f %s"
,
vt
->
backend
->
directo
r
->
vcl_name
,
chg
?
"Went"
:
"Still"
,
di
r
->
vcl_name
,
chg
?
"Went"
:
"Still"
,
i
?
"sick"
:
"healthy"
,
bits
,
vt
->
good
,
vt
->
threshold
,
vt
->
window
,
vt
->
last
,
vt
->
avg
,
vt
->
resp_buf
);
...
...
@@ -187,7 +190,7 @@ VBP_Update_Backend(struct vbp_target *vt)
if
(
chg
)
{
vt
->
backend
->
changed
=
VTIM_real
();
VRT_SetChanged
(
vt
->
backend
->
directo
r
,
vt
->
backend
->
changed
);
VRT_SetChanged
(
di
r
,
vt
->
backend
->
changed
);
}
Lck_Unlock
(
&
vbp_mtx
);
}
...
...
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