The streaming fetch of an object can fail between lookup time and when
we actually use it. Relax this assertion.
Fixes: #1647
---
bin/varnishd/cache/cache_req_fsm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/varnishd/cache/cache_req_fsm.c
b/bin/varnishd/cache/cache_req_fsm.c
index 1078d34..b2e5aef 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -356,7 +356,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
switch (wrk->handling) {
case VCL_RET_DELIVER:
if (boc != NULL) {
- AZ(oc->flags & (OC_F_FAILED|OC_F_PASS));
+ AZ(oc->flags & OC_F_PASS);
AZ(oc->exp_flags & OC_EF_DYING);
AZ(boc->busyobj);
VBF_Fetch(wrk, req, boc, oc, VBF_BACKGROUND);
--
2.1.3
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev