r2430 - in trunk/varnish-cache: include lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Tue Feb 5 11:50:33 CET 2008


Author: phk
Date: 2008-02-05 11:50:33 +0100 (Tue, 05 Feb 2008)
New Revision: 2430

Modified:
   trunk/varnish-cache/include/vcl.h
   trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c
   trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl
Log:
Add a discard flag to the VCL_conf.


Modified: trunk/varnish-cache/include/vcl.h
===================================================================
--- trunk/varnish-cache/include/vcl.h	2008-02-05 09:57:46 UTC (rev 2429)
+++ trunk/varnish-cache/include/vcl.h	2008-02-05 10:50:33 UTC (rev 2430)
@@ -21,6 +21,7 @@
         struct vrt_ref  *ref;
         unsigned        nref;
         unsigned        busy;
+        unsigned        discard;
         
 	unsigned	nsrc;
 	const char	**srcname;

Modified: trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c	2008-02-05 09:57:46 UTC (rev 2429)
+++ trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c	2008-02-05 10:50:33 UTC (rev 2430)
@@ -325,6 +325,7 @@
 	vsb_cat(sb, "        struct vrt_ref  *ref;\n");
 	vsb_cat(sb, "        unsigned        nref;\n");
 	vsb_cat(sb, "        unsigned        busy;\n");
+	vsb_cat(sb, "        unsigned        discard;\n");
 	vsb_cat(sb, "        \n");
 	vsb_cat(sb, "	unsigned	nsrc;\n");
 	vsb_cat(sb, "	const char	**srcname;\n");

Modified: trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl	2008-02-05 09:57:46 UTC (rev 2429)
+++ trunk/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl	2008-02-05 10:50:33 UTC (rev 2430)
@@ -137,6 +137,7 @@
         struct vrt_ref  *ref;
         unsigned        nref;
         unsigned        busy;
+        unsigned        discard;
         
 	unsigned	nsrc;
 	const char	**srcname;




More information about the varnish-commit mailing list