Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-vslp
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-vslp
Commits
beb631a8
Commit
beb631a8
authored
Dec 20, 2014
by
Julian Wiesener
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for varnish master
parent
ff3e6630
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
vmod_vslp.c
src/vmod_vslp.c
+1
-1
vslp_dir.c
src/vslp_dir.c
+4
-4
No files found.
src/vmod_vslp.c
View file @
beb631a8
...
...
@@ -34,7 +34,7 @@
#include <arpa/inet.h>
#include "cache/cache.h"
#include "cache/cache_
backend
.h"
#include "cache/cache_
director
.h"
#include "vrt.h"
#include "vbm.h"
...
...
src/vslp_dir.c
View file @
beb631a8
...
...
@@ -37,7 +37,7 @@
#include <time.h>
#include "cache/cache.h"
#include "cache/cache_
backend
.h"
#include "cache/cache_
director
.h"
#include "vrt.h"
...
...
@@ -178,7 +178,7 @@ vslp_choose_next_healthy(struct vslp_state *state, uint32_t n_retry)
be
=
state
->
vslpd
->
backend
[
chosen
];
AN
(
be
);
if
(
be
->
healthy
(
be
,
NULL
))
if
(
be
->
healthy
(
be
,
NULL
,
NULL
))
{
vslp_be_healthy
(
state
,
chosen
);
break
;
...
...
@@ -368,7 +368,7 @@ vslpdir_any_healthy(struct vslpdir *vslpd)
for
(
u
=
0
;
u
<
vslpd
->
n_backend
;
u
++
)
{
be
=
vslpd
->
backend
[
u
];
CHECK_OBJ_NOTNULL
(
be
,
DIRECTOR_MAGIC
);
if
(
be
->
healthy
(
be
,
NULL
))
{
if
(
be
->
healthy
(
be
,
NULL
,
NULL
))
{
retval
=
1
;
break
;
}
...
...
@@ -459,7 +459,7 @@ VCL_BACKEND vslpdir_pick_be(struct vslpdir *vslpd, const struct vrt_ctx *ctx, ui
return
(
be
);
}
if
(
be
->
healthy
(
be
,
NULL
))
if
(
be
->
healthy
(
be
,
ctx
->
bo
,
NULL
))
{
if
(
!
vslp_be_healthy
(
&
state
,
chosen
))
be_choice
^=
be_choice
;
...
...
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