r1745 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Tue Jul 24 13:39:55 CEST 2007


Author: des
Date: 2007-07-24 13:39:55 +0200 (Tue, 24 Jul 2007)
New Revision: 1745

Modified:
   trunk/varnish-cache/bin/varnishd/cache_vrt.c
Log:
Implement VRT_r_obj_status(), without which obj.status can't be read.


Modified: trunk/varnish-cache/bin/varnishd/cache_vrt.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt.c	2007-07-24 11:10:22 UTC (rev 1744)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt.c	2007-07-24 11:39:55 UTC (rev 1745)
@@ -234,6 +234,14 @@
 	http_SetH(&sp->obj->http, HTTP_HDR_STATUS, p);
 }
 
+int
+VRT_r_obj_status(struct sess *sp)
+{
+	CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
+	CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
+	return (atoi(sp->obj->http.hd[HTTP_HDR_STATUS].b));
+}
+
 void
 VRT_l_resp_status(struct sess *sp, int num)
 {




More information about the varnish-commit mailing list