r456 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jul 12 15:28:27 CEST 2006


Author: phk
Date: 2006-07-12 15:28:26 +0200 (Wed, 12 Jul 2006)
New Revision: 456

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
First stab at implementing pass in vcl_miss()


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2006-07-12 13:27:42 UTC (rev 455)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2006-07-12 13:28:26 UTC (rev 456)
@@ -312,8 +312,15 @@
 	VCL_miss_method(sp);
 	if (sp->handling == VCL_RET_ERROR)
 		INCOMPL();
-	if (sp->handling == VCL_RET_PASS)
-		INCOMPL();
+	if (sp->handling == VCL_RET_PASS) {
+		sp->obj->cacheable = 0;
+		HSH_Unbusy(sp->obj);
+		HSH_Deref(sp->obj);
+		sp->obj = 0;
+		PassSession(w, sp);
+		sp->step = STP_DONE;
+		return;
+	}
 	if (sp->handling == VCL_RET_LOOKUP)
 		INCOMPL();
 	if (sp->handling == VCL_RET_FETCH) {


Property changes on: trunk/varnish-cache/bin/varnishd/cache_center.c
___________________________________________________________________
Name: svn:keywords
   + Id




More information about the varnish-commit mailing list