r2255 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Thu Nov 15 17:02:05 CET 2007


Author: des
Date: 2007-11-15 17:02:05 +0100 (Thu, 15 Nov 2007)
New Revision: 2255

Modified:
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Change the assert() that triggers in #167 to spassert().


Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2007-11-15 16:01:21 UTC (rev 2254)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2007-11-15 16:02:05 UTC (rev 2255)
@@ -191,7 +191,7 @@
 			VSL_stats->n_objwrite++;
 			WRK_Write(sp->wrk, st->ptr, st->len);
 		}
-		assert(u == sp->obj->len);
+		spassert(u == sp->obj->len);
 		if (sp->esis > 0)
 			WRK_Write(sp->wrk, "\r\n", -1);
 	}




More information about the varnish-commit mailing list