[master] 1b5a1f6 Use VBO_setstate() so waiters wake up.

Poul-Henning Kamp phk at varnish-cache.org
Mon Aug 26 08:40:24 CEST 2013


commit 1b5a1f6d25b8a96618a469253479fc79fa98203d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 26 06:40:03 2013 +0000

    Use VBO_setstate() so waiters wake up.

diff --git a/bin/varnishd/cache/cache_fetch_proc.c b/bin/varnishd/cache/cache_fetch_proc.c
index cacfcc0..37a2f4d 100644
--- a/bin/varnishd/cache/cache_fetch_proc.c
+++ b/bin/varnishd/cache/cache_fetch_proc.c
@@ -62,8 +62,8 @@ VFP_Error2(struct busyobj *bo, const char *error, const char *more)
 			VSLb(bo->vsl, SLT_FetchError, "%s", error);
 		else
 			VSLb(bo->vsl, SLT_FetchError, "%s: %s", error, more);
+		VBO_setstate(bo, BOS_FAILED);
 	}
-	bo->state = BOS_FAILED;
 	return (-1);
 }
 



More information about the varnish-commit mailing list