[master] e3a6652c9 If we have a vcl on req0, recache it, it's almost certain to be vcl_active.
Poul-Henning Kamp
phk at FreeBSD.org
Wed May 5 17:37:06 UTC 2021
commit e3a6652c9c796fc6df415b21c71f63ecd59cd48a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed May 5 17:35:57 2021 +0000
If we have a vcl on req0, recache it, it's almost certain to be vcl_active.
diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index 7857b2f6b..63531cd81 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -1157,7 +1157,7 @@ CNT_Request(struct req *req)
if (IS_TOPREQ(req)) {
VCL_TaskLeave(ctx, req->top->privs);
if (req->top->vcl0 != NULL)
- VCL_Rel(&req->top->vcl0);
+ VCL_Recache(wrk, &req->top->vcl0);
}
VCL_TaskLeave(ctx, req->privs);
AN(req->vsl->wid);
More information about the varnish-commit
mailing list