r427 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Jul 11 15:31:14 CEST 2006


Author: phk
Date: 2006-07-11 15:31:14 +0200 (Tue, 11 Jul 2006)
New Revision: 427

Added:
   trunk/varnish-cache/bin/varnishd/steps.h
Modified:
   trunk/varnish-cache/bin/varnishd/cache.h
Log:
Add enum for major procesing steps


Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h	2006-07-11 12:31:44 UTC (rev 426)
+++ trunk/varnish-cache/bin/varnishd/cache.h	2006-07-11 13:31:14 UTC (rev 427)
@@ -18,6 +18,14 @@
 struct object;
 struct objhead;
 
+/*--------------------------------------------------------------------*/
+
+enum step {
+#define STEP(l, u)	STP_##u,
+#include "steps.h"
+#undef STEP
+};
+
 /*--------------------------------------------------------------------
  * HTTP Request/Response/Header handling structure.
  * RSN: struct worker and struct session will have one of these embedded.
@@ -148,6 +156,7 @@
 	time_t			t_req;
 	time_t			t_resp;
 
+	enum step		step;
 	unsigned 		handling;
 
 	TAILQ_ENTRY(sess)	list;

Added: trunk/varnish-cache/bin/varnishd/steps.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/steps.h	2006-07-11 12:31:44 UTC (rev 426)
+++ trunk/varnish-cache/bin/varnishd/steps.h	2006-07-11 13:31:14 UTC (rev 427)
@@ -0,0 +1,13 @@
+/* $Id$ */
+
+STEP(recv,	RECV)
+STEP(pipe,	PIPE)
+STEP(pass,	PASS)
+STEP(passbody,	PASSBODY)
+STEP(lookup,	LOOKUP)
+STEP(miss,	MISS)
+STEP(hit,	HIT)
+STEP(fetch,	FETCH)
+STEP(deliver,	DELIVER)
+STEP(error,	ERROR)
+STEP(done,	DONE)




More information about the varnish-commit mailing list