Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
6c5148cb
Commit
6c5148cb
authored
Mar 06, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor flexlinting
parent
ce562c0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
vdir.c
lib/libvmod_directors/vdir.c
+2
-1
vmod_shard.c
lib/libvmod_directors/vmod_shard.c
+1
-1
No files found.
lib/libvmod_directors/vdir.c
View file @
6c5148cb
...
@@ -304,8 +304,9 @@ vdir_update_health(VRT_CTX, struct vdir *vd)
...
@@ -304,8 +304,9 @@ vdir_update_health(VRT_CTX, struct vdir *vd)
VCL_BACKEND
be
;
VCL_BACKEND
be
;
unsigned
u
,
nh
=
0
;
unsigned
u
,
nh
=
0
;
double
tw
=
0
.
0
;
double
tw
=
0
.
0
;
struct
vbitmap
*
healthy
=
vd
->
healthy
;
struct
vbitmap
*
healthy
;
CHECK_OBJ_NOTNULL
(
vd
,
VDIR_MAGIC
);
healthy
=
vd
->
healthy
;
healthy
=
vd
->
healthy
;
for
(
u
=
0
;
u
<
vd
->
n_backend
;
u
++
)
{
for
(
u
=
0
;
u
<
vd
->
n_backend
;
u
++
)
{
be
=
vd
->
backend
[
u
];
be
=
vd
->
backend
[
u
];
...
...
lib/libvmod_directors/vmod_shard.c
View file @
6c5148cb
...
@@ -757,7 +757,7 @@ vmod_shard_resolve(VRT_CTX, VCL_BACKEND dir)
...
@@ -757,7 +757,7 @@ vmod_shard_resolve(VRT_CTX, VCL_BACKEND dir)
pp
->
rampup
,
pp
->
healthy
));
pp
->
rampup
,
pp
->
healthy
));
}
}
void
v_matchproto_
(
vdi_list_f
)
static
void
v_matchproto_
(
vdi_list_f
)
vmod_shard_list
(
VRT_CTX
,
VCL_BACKEND
dir
,
struct
vsb
*
vsb
,
int
pflag
,
int
jflag
)
vmod_shard_list
(
VRT_CTX
,
VCL_BACKEND
dir
,
struct
vsb
*
vsb
,
int
pflag
,
int
jflag
)
{
{
struct
sharddir
*
shardd
;
struct
sharddir
*
shardd
;
...
...
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