for hitmiss and hitpass, go directly to backend

parent e0a8af47
......@@ -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);
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment