[master] 466d963 Also set grace = 0 when an object is banned.

Poul-Henning Kamp phk at varnish-cache.org
Thu Feb 24 11:32:00 CET 2011


commit 466d963158b98d7bbeb20bd5d539baea2c719a9d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Feb 24 10:31:45 2011 +0000

    Also set grace = 0 when an object is banned.
    
    Spotted by:	Geoff

diff --git a/bin/varnishd/cache_ban.c b/bin/varnishd/cache_ban.c
index 50d29e3..2563f0c 100644
--- a/bin/varnishd/cache_ban.c
+++ b/bin/varnishd/cache_ban.c
@@ -476,6 +476,7 @@ ban_check_object(struct object *o, const struct sess *sp, int has_req)
 		return (0);
 	} else {
 		o->ttl = 0;
+		o->grace = 0;
 		oc->ban = NULL;
 		oc_updatemeta(oc);
 		/* BAN also changed, but that is not important any more */



More information about the varnish-commit mailing list