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
7fc2003e
Commit
7fc2003e
authored
May 24, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix and test parameters on stack
parent
787af448
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
vmod_cluster.c
src/vmod_cluster.c
+5
-3
now.vtc
src/vtc/now.vtc
+3
-3
No files found.
src/vmod_cluster.c
View file @
7fc2003e
...
...
@@ -395,9 +395,11 @@ vmod_cluster_resolve(VRT_CTX, VCL_BACKEND dir)
(pr) = (pl) = cluster_task_param_l( \
(ctx), (vc), (pr)->nblack + 1); \
} else { \
(pr) = (pl) = alloca(param_sz(pl, (pr)->nblack + 1)); \
INIT_OBJ((pl), VMOD_CLUSTER_CLUSTER_PARAM_MAGIC); \
} \
(pl) = alloca(param_sz((pr), (pr)->nblack + 1)); \
memcpy((pl), (pr), param_sz((pr), (pr)->nblack)); \
(pl)->spcblack = (pr)->nblack + 1; \
(pr) = (pl); \
} \
} while (0)
VCL_BACKEND
...
...
src/vtc/now.vtc
View file @
7fc2003e
...
...
@@ -12,14 +12,14 @@ varnish v1 -vcl {
new rr = directors.round_robin();
rr.add_backend(s1);
rr.add_backend(s2);
new cl = cluster.cluster(rr.backend()
, deny=s2, real=s3
);
new cl = cluster.cluster(rr.backend());
}
sub vcl_recv {
return (synth(200));
}
sub vcl_synth {
set resp.http.b1 = cl.backend(resolve=NOW);
set resp.http.b2 = cl.backend(resolve=NOW);
set resp.http.b1 = cl.backend(resolve=NOW
, deny=s2, real=s3
);
set resp.http.b2 = cl.backend(resolve=NOW
, deny=s2, real=s3
);
}
} -start
...
...
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