[master] a44b3a8 Don't tell EXP about failed fetches
Poul-Henning Kamp
phk at varnish-cache.org
Wed Oct 9 13:03:11 CEST 2013
commit a44b3a8165f3f6ea63f32cb04280bab2f5e50046
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Oct 9 11:02:49 2013 +0000
Don't tell EXP about failed fetches
diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index 3d75780..f5d7d8f 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -437,7 +437,7 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
VBO_setstate(bo, BOS_FETCHING);
V1F_fetch_body(wrk, bo);
- if (!bo->do_stream) {
+ if (!bo->do_stream && bo->state != BOS_FAILED) {
HSH_Unbusy(&wrk->stats, obj->objcore);
if (!(bo->fetch_obj->objcore->flags & OC_F_PRIVATE)) {
EXP_Insert(obj->objcore);
More information about the varnish-commit
mailing list