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
cc2552ef
Commit
cc2552ef
authored
Mar 20, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename cluster_blacklisted -> cluster_denied
parent
2cf9e59b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vmod_cluster.c
src/vmod_cluster.c
+6
-6
No files found.
src/vmod_cluster.c
View file @
cc2552ef
...
...
@@ -247,7 +247,7 @@ cluster_allow(VRT_CTX, struct vmod_cluster_cluster_param *p,
}
static
int
cluster_
blacklist
ed
(
const
struct
vmod_cluster_cluster_param
*
p
,
cluster_
deni
ed
(
const
struct
vmod_cluster_cluster_param
*
p
,
VCL_BACKEND
b
)
{
VCL_BACKEND
bl
;
...
...
@@ -332,7 +332,7 @@ vmod_cluster_deny(VRT_CTX,
CHECK_OBJ_NOTNULL
(
vc
,
VMOD_CLUSTER_CLUSTER_MAGIC
);
pr
=
cluster_task_param_r
(
ctx
,
vc
);
if
(
cluster_
blacklist
ed
(
pr
,
b
))
if
(
cluster_
deni
ed
(
pr
,
b
))
return
;
pl
=
cluster_task_param_l
(
ctx
,
vc
,
pr
->
nblack
+
1
,
NULL
);
...
...
@@ -351,7 +351,7 @@ vmod_cluster_allow(VRT_CTX,
CHECK_OBJ_NOTNULL
(
vc
,
VMOD_CLUSTER_CLUSTER_MAGIC
);
pr
=
cluster_task_param_r
(
ctx
,
vc
);
if
(
!
cluster_
blacklist
ed
(
pr
,
b
))
if
(
!
cluster_
deni
ed
(
pr
,
b
))
return
;
pl
=
cluster_task_param_l
(
ctx
,
vc
,
pr
->
nblack
,
NULL
);
...
...
@@ -369,7 +369,7 @@ vmod_cluster_is_denied(VRT_CTX,
pr
=
cluster_task_param_r
(
ctx
,
vc
);
return
(
cluster_
blacklist
ed
(
pr
,
b
));
return
(
cluster_
deni
ed
(
pr
,
b
));
}
VCL_BACKEND
...
...
@@ -484,7 +484,7 @@ decide(VRT_CTX, const struct vmod_cluster_cluster_param *pr,
return
(
NULL
);
}
if
(
cluster_
blacklist
ed
(
pr
,
r
))
if
(
cluster_
deni
ed
(
pr
,
r
))
goto
real
;
if
(
decision
!=
NULL
)
...
...
@@ -525,7 +525,7 @@ cluster_update_by_args(VRT_CTX, struct vmod_cluster_cluster *vc,
nblack
=
pr
->
nblack
;
if
(
arg
->
valid_deny
&&
arg
->
deny
!=
NULL
&&
!
cluster_
blacklist
ed
(
pr
,
arg
->
deny
))
{
!
cluster_
deni
ed
(
pr
,
arg
->
deny
))
{
if
(
pl
==
NULL
)
pr
=
pl
=
cluster_task_param_l
(
ctx
,
vc
,
++
nblack
,
spc
);
...
...
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