From 7dc224a2b785338eee4273a9481d9dadbcb69955 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 22 Sep 2008 09:35:03 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3212 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_backend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_backend.c b/varnish-cache/bin/varnishd/cache_backend.c index 831148ba..96f1d1fb 100644 --- a/varnish-cache/bin/varnishd/cache_backend.c +++ b/varnish-cache/bin/varnishd/cache_backend.c @@ -309,6 +309,8 @@ VBE_GetVbe(struct sess *sp, struct backend *bp) /* 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 @@ VBE_GetVbe(struct sess *sp, struct backend *bp) } 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); } -- 2.39.5