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
cd761af1
Commit
cd761af1
authored
Jul 13, 2014
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix an off-by one error: failing assertion if only one backend configured
parent
c875e2d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
v01009.vtc
src/tests/v01009.vtc
+30
-0
vslp_dir.c
src/vslp_dir.c
+1
-1
No files found.
src/tests/v01009.vtc
0 → 100644
View file @
cd761af1
varnishtest "VSLP - single backend works"
server s1 {
rxreq
txresp -body "ech3Ooj"
} -start
varnish v1 -vcl+backend {
import vslp from "${vmod_topbuild}/src/.libs/libvmod_vslp.so" ;
sub vcl_init {
new vd = vslp.vslp();
vd.add_backend(s1);
vd.set_rampup_ratio(0);
vd.init_hashcircle(25);
}
sub vcl_recv {
set req.backend_hint = vd.backend();
return(pass);
}
} -start
client c1 {
txreq -url /eishoSu2
rxresp
expect resp.body == "ech3Ooj"
} -run
src/vslp_dir.c
View file @
cd761af1
...
...
@@ -304,7 +304,7 @@ vslpdir_init_hashcircle(struct vslpdir *vslpd, VCL_INT replicas)
sizeof
(
struct
vslp_hostnode
));
AN
(
vslpd
->
hashcircle
);
AN
(
vslpd
->
backend
);
if
(
vslpd
->
backend
[
1
]
==
NULL
)
if
(
vslpd
->
backend
[
0
]
==
NULL
)
{
vslpdir_unlock
(
vslpd
);
WRONG
(
"VSLP director doesn't have any backends"
);
...
...
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