Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-weightadjust
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-weightadjust
Commits
e85e0c83
Unverified
Commit
e85e0c83
authored
Apr 28, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update random.c from varnish-cache
parent
ecc7ffbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
random.c
src/random.c
+14
-1
No files found.
src/random.c
View file @
e85e0c83
...
...
@@ -57,6 +57,18 @@ vmod_random_healthy(VRT_CTX, VCL_BACKEND dir, VCL_TIME *changed)
return
(
vdir_any_healthy
(
ctx
,
rr
->
vd
,
changed
));
}
static
void
vmod_random_list
(
VRT_CTX
,
VCL_BACKEND
dir
,
struct
vsb
*
vsb
,
int
pflag
,
int
jflag
)
{
struct
vmod_directors_random
*
rr
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
dir
,
DIRECTOR_MAGIC
);
CAST_OBJ_NOTNULL
(
rr
,
dir
->
priv
,
VMOD_DIRECTORS_RANDOM_MAGIC
);
vdir_list
(
ctx
,
rr
->
vd
,
vsb
,
pflag
,
jflag
,
1
);
}
static
VCL_BACKEND
vmod_random_resolve
(
VRT_CTX
,
VCL_BACKEND
dir
)
{
...
...
@@ -88,7 +100,8 @@ static const struct vdi_methods vmod_random_methods[1] = {{
.
type
=
"random"
,
.
healthy
=
vmod_random_healthy
,
.
resolve
=
vmod_random_resolve
,
.
destroy
=
vmod_random_destroy
.
destroy
=
vmod_random_destroy
,
.
list
=
vmod_random_list
}};
...
...
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