]> err.no Git - varnish/commitdiff
Lost on the big director shuffle:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Sep 2008 09:35:03 +0000 (09:35 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Sep 2008 09:35:03 +0000 (09:35 +0000)
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

index 831148baa46e67b60f875872df9c01e40157a4ba..96f1d1fb849b37e2bb73d2c06df33c5d2eab92f4 100644 (file)
@@ -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);
 }