From: phk Date: Mon, 22 Sep 2008 09:35:03 +0000 (+0000) Subject: Lost on the big director shuffle: X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dc224a2b785338eee4273a9481d9dadbcb69955;p=varnish 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 --- 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); }