r833 - trunk/varnish-cache/bin/varnishlog

phk at projects.linpro.no phk at projects.linpro.no
Fri Aug 18 22:07:37 CEST 2006


Author: phk
Date: 2006-08-18 22:07:37 +0200 (Fri, 18 Aug 2006)
New Revision: 833

Modified:
   trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
Respect and clear TAG also on flush


Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-18 19:53:43 UTC (rev 832)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-18 20:07:37 UTC (rev 833)
@@ -57,8 +57,10 @@
 		if (ob[u] == NULL)
 			continue;
 		vsb_finish(ob[u]);
-		if (vsb_len(ob[u]))
+		if (vsb_len(ob[u]) > 1 &&
+		    (match_tag == -1 || flg[u] & F_MATCH))
 			printf("%s\n", vsb_data(ob[u]));
+		flg[u] = 0;
 		vsb_clear(ob[u]);
 	}
 }




More information about the varnish-commit mailing list