r2838 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Thu Jun 26 23:42:06 CEST 2008


Author: phk
Date: 2008-06-26 23:42:05 +0200 (Thu, 26 Jun 2008)
New Revision: 2838

Modified:
   trunk/varnish-cache/bin/varnishd/cache_fetch.c
Log:
Oops, only enable $evilhack when we want to.



Modified: trunk/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_fetch.c	2008-06-26 21:09:32 UTC (rev 2837)
+++ trunk/varnish-cache/bin/varnishd/cache_fetch.c	2008-06-26 21:42:05 UTC (rev 2838)
@@ -232,7 +232,7 @@
 			VTAILQ_INSERT_TAIL(&sp->obj->store, st, list);
 			p = st->ptr + st->len;
 			v = st->space - st->len;
-			if (v > fetchfrag)
+			if (fetchfrag > 0 && v > fetchfrag)
 				v = fetchfrag;
 		}
 		AN(p);




More information about the varnish-commit mailing list