Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-cluster
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
libvmod-cluster
Commits
7c003ef2
Commit
7c003ef2
authored
Feb 06, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only checking the real backends is not sufficient
parent
18296260
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
vmod_cluster.c
src/vmod_cluster.c
+11
-10
No files found.
src/vmod_cluster.c
View file @
7c003ef2
...
...
@@ -541,8 +541,8 @@ vmod_cluster_backend(VRT_CTX,
/*
* layered directors may not be prepared to resolve outside a VCL task, so when
* called from the cli (no method, no vcl), just return health
of the real
*
backend
* called from the cli (no method, no vcl), just return health
y if either the
*
real or the cluster backend is healthy
*/
static
VCL_BOOL
...
...
@@ -550,17 +550,18 @@ vmod_cluster_healthy(VRT_CTX, VCL_BACKEND be, VCL_TIME *c)
{
const
struct
vmod_cluster_cluster
*
vc
;
const
struct
vmod_cluster_cluster_param
*
p
;
VCL_BOOL
r
;
if
(
ctx
->
vcl
&&
ctx
->
method
)
{
be
=
vmod_cluster_resolve
(
ctx
,
be
);
}
else
{
CAST_OBJ_NOTNULL
(
vc
,
be
->
priv
,
VMOD_CLUSTER_CLUSTER_MAGIC
);
p
=
vc
->
param
;
CHECK_OBJ_NOTNULL
(
p
,
VMOD_CLUSTER_CLUSTER_PARAM_MAGIC
);
be
=
p
->
real
;
return
(
VRT_Healthy
(
ctx
,
be
,
c
));
}
return
VRT_Healthy
(
ctx
,
be
,
c
);
CAST_OBJ_NOTNULL
(
vc
,
be
->
priv
,
VMOD_CLUSTER_CLUSTER_MAGIC
);
p
=
vc
->
param
;
CHECK_OBJ_NOTNULL
(
p
,
VMOD_CLUSTER_CLUSTER_PARAM_MAGIC
);
r
=
VRT_Healthy
(
ctx
,
p
->
cluster
,
c
);
if
(
r
)
return
(
r
);
return
(
VRT_Healthy
(
ctx
,
p
->
real
,
c
));
}
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