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
2cf9e59b
Commit
2cf9e59b
authored
Mar 20, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename cluster_blacklist_add/del -> cluster_deny/allow
parent
43e72d21
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 @
2cf9e59b
...
...
@@ -212,7 +212,7 @@ cluster_task_param_r(VRT_CTX, struct vmod_cluster_cluster *vc)
}
static
void
cluster_
blacklist_add
(
VRT_CTX
,
struct
vmod_cluster_cluster_param
*
p
,
cluster_
deny
(
VRT_CTX
,
struct
vmod_cluster_cluster_param
*
p
,
VCL_BACKEND
b
)
{
CHECK_OBJ_NOTNULL
(
p
,
VMOD_CLUSTER_CLUSTER_PARAM_MAGIC
);
...
...
@@ -225,7 +225,7 @@ cluster_blacklist_add(VRT_CTX, struct vmod_cluster_cluster_param *p,
}
static
void
cluster_
blacklist_del
(
VRT_CTX
,
struct
vmod_cluster_cluster_param
*
p
,
cluster_
allow
(
VRT_CTX
,
struct
vmod_cluster_cluster_param
*
p
,
VCL_BACKEND
b
)
{
int
i
;
...
...
@@ -292,7 +292,7 @@ vmod_cluster__init(VRT_CTX,
if
(
args
->
valid_real
)
p
->
real
=
args
->
real
;
if
(
args
->
valid_deny
)
cluster_
blacklist_add
(
ctx
,
p
,
args
->
deny
);
cluster_
deny
(
ctx
,
p
,
args
->
deny
);
vc
->
dir
=
VRT_AddDirector
(
ctx
,
vmod_cluster_methods
,
vc
,
"%s"
,
vcl_name
);
}
...
...
@@ -336,7 +336,7 @@ vmod_cluster_deny(VRT_CTX,
return
;
pl
=
cluster_task_param_l
(
ctx
,
vc
,
pr
->
nblack
+
1
,
NULL
);
cluster_
blacklist_add
(
ctx
,
pl
,
b
);
cluster_
deny
(
ctx
,
pl
,
b
);
}
VCL_VOID
...
...
@@ -355,7 +355,7 @@ vmod_cluster_allow(VRT_CTX,
return
;
pl
=
cluster_task_param_l
(
ctx
,
vc
,
pr
->
nblack
,
NULL
);
cluster_
blacklist_del
(
ctx
,
pl
,
b
);
cluster_
allow
(
ctx
,
pl
,
b
);
}
VCL_BOOL
...
...
@@ -529,7 +529,7 @@ cluster_update_by_args(VRT_CTX, struct vmod_cluster_cluster *vc,
if
(
pl
==
NULL
)
pr
=
pl
=
cluster_task_param_l
(
ctx
,
vc
,
++
nblack
,
spc
);
cluster_
blacklist_add
(
ctx
,
pl
,
arg
->
deny
);
cluster_
deny
(
ctx
,
pl
,
arg
->
deny
);
}
if
(
arg
->
valid_real
&&
pr
->
real
!=
arg
->
real
)
{
if
(
pl
==
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