r3212 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Sep 22 11:35:03 CEST 2008


Author: phk
Date: 2008-09-22 11:35:03 +0200 (Mon, 22 Sep 2008)
New Revision: 3212

Modified:
   trunk/varnish-cache/bin/varnishd/cache_backend.c
Log:
Lost on the big director shuffle:

Link client side log records to backend side log records with the "Backend"
record.

Content is:
	Fd# of backend connection
	VCL name of director
	VCL name of chosen backend.

Spotted by:	sky



Modified: trunk/varnish-cache/bin/varnishd/cache_backend.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_backend.c	2008-09-22 08:15:31 UTC (rev 3211)
+++ trunk/varnish-cache/bin/varnishd/cache_backend.c	2008-09-22 09:35:03 UTC (rev 3212)
@@ -309,6 +309,8 @@
 			/* XXX locking of stats */
 			VSL_stats->backend_reuse += 1;
 			VSL_stats->backend_conn++;
+			WSP(sp, SLT_Backend, "%d %s %s",
+			    vc->fd, sp->director->vcl_name, bp->vcl_name);
 			return (vc);
 		}
 		sp->vbe = vc;
@@ -336,6 +338,8 @@
 	}
 	vc->backend = bp;
 	VSL_stats->backend_conn++;
+	WSP(sp, SLT_Backend, "%d %s %s",
+	    vc->fd, sp->director->vcl_name, bp->vcl_name);
 	return (vc);
 }
 




More information about the varnish-commit mailing list