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
47577a6f
Commit
47577a6f
authored
Mar 19, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull out the core from vmod_cluster_backend
parent
51723332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
vmod_cluster.c
src/vmod_cluster.c
+11
-3
No files found.
src/vmod_cluster.c
View file @
47577a6f
...
...
@@ -479,9 +479,10 @@ vmod_cluster_resolve(VRT_CTX, VCL_BACKEND dir)
cluster_task_param_r
(
ctx
,
dir
->
priv
),
DEEP
));
}
VCL_BACKEND
vmod_cluster_backend
(
VRT_CTX
,
static
VCL_BACKEND
cluster_choose
(
VRT_CTX
,
struct
vmod_cluster_cluster
*
vc
,
enum
resolve_e
resolve
,
struct
VARGS
(
cluster_backend
)
*
arg
)
{
int
modify
=
arg
->
valid_deny
||
arg
->
valid_real
||
...
...
@@ -490,7 +491,6 @@ vmod_cluster_backend(VRT_CTX,
struct
vmod_cluster_cluster_param
*
pl
=
NULL
;
void
*
spc
=
NULL
;
int
nblack
;
enum
resolve_e
resolve
=
parse_resolve_e
(
arg
->
resolve
);
if
(
!
modify
)
{
if
(
resolve
==
LAZY
)
...
...
@@ -543,6 +543,14 @@ vmod_cluster_backend(VRT_CTX,
return
(
cluster_resolve
(
ctx
,
pr
,
resolve
));
}
VCL_BACKEND
vmod_cluster_backend
(
VRT_CTX
,
struct
vmod_cluster_cluster
*
vc
,
struct
VARGS
(
cluster_backend
)
*
arg
)
{
return
(
cluster_choose
(
ctx
,
vc
,
parse_resolve_e
(
arg
->
resolve
),
arg
));
}
/*
* layered directors may not be prepared to resolve outside a VCL task, so when
* called from the cli (no method, no vcl), just return healthy if either the
...
...
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