[master] 7fe1673 Don't hide the last ban in the list on the CLI ban.list output

Martin Blix Grydeland martin at varnish-cache.org
Tue Nov 13 15:49:24 CET 2012


commit 7fe1673e16410f085e379f776f81d86af41f1f2f
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Oct 31 15:55:13 2012 +0100

    Don't hide the last ban in the list on the CLI ban.list output
    
    The ban.list output would hide the very last ban on the list unless
    the lurker debug flag was set. This hides useful debugging information
    (how many objects are stuck on the last ban), without giving any
    apparent benefit. Remove the hide code.

diff --git a/bin/varnishd/cache/cache_ban.c b/bin/varnishd/cache/cache_ban.c
index 2f142df..bf671bc 100644
--- a/bin/varnishd/cache/cache_ban.c
+++ b/bin/varnishd/cache/cache_ban.c
@@ -1132,8 +1132,6 @@ ccf_ban_list(struct cli *cli, const char * const *av, void *priv)
 
 	VCLI_Out(cli, "Present bans:\n");
 	VTAILQ_FOREACH(b, &ban_head, list) {
-		if (b == bl && !DO_DEBUG(DBG_LURKER))
-			break;
 		VCLI_Out(cli, "%10.6f %5u%s\t", ban_time(b->spec),
 		    bl == b ? b->refcount - 1 : b->refcount,
 		    b->flags & BAN_F_GONE ? "G" : " ");



More information about the varnish-commit mailing list