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
c3aa3510
Unverified
Commit
c3aa3510
authored
Nov 16, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for hitmiss and hitpass, go directly to backend
parent
e0a8af47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
vmod_cluster.c
src/vmod_cluster.c
+2
-1
vmod_cluster.vcc
src/vmod_cluster.vcc
+2
-1
No files found.
src/vmod_cluster.c
View file @
c3aa3510
...
...
@@ -472,7 +472,8 @@ decide(VRT_CTX, const struct vmod_cluster_cluster_param *pr,
if
(
pr
->
direct
||
(
pr
->
uncacheable_direct
&&
ctx
->
bo
&&
(
ctx
->
bo
->
do_pass
||
ctx
->
bo
->
uncacheable
)))
(
ctx
->
bo
->
do_pass
||
ctx
->
bo
->
uncacheable
||
ctx
->
bo
->
is_hitmiss
||
ctx
->
bo
->
is_hitpass
)))
goto
real
;
AN
(
pr
->
cluster
);
...
...
src/vmod_cluster.vcc
View file @
c3aa3510
...
...
@@ -41,7 +41,8 @@ roughly equivalent if ``myself`` resolves to the local node
}
sub vcl_backend_fetch {
if (bereq.uncacheable || shard.backend() == myself) {
if (bereq.uncacheable || bereq.is_hitmiss ||
bereq.is_hitpass || shard.backend() == myself) {
set bereq.backend = real.backend();
} else {
set bereq.backend = shard.backend();
...
...
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