]> err.no Git - varnish/commitdiff
Count backend requests.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jul 2007 08:40:33 +0000 (08:40 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jul 2007 08:40:33 +0000 (08:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1729 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_fetch.c
varnish-cache/include/stat_field.h

index 0e0a80bf2512ec10195c44c99c7190752db1df65..2f2021f521b67ba7520635c3ddb9278303e0da5f 100644 (file)
@@ -286,6 +286,9 @@ Fetch(struct sess *sp)
                return (1);
        }
 
+       /* XXX is this the right place? */
+       VSL_stats->backend_req++;
+
        CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
        CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
        CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
index d944d0a8410ac1c6eea164dd5b074ab992202241..5e7a80c83bd6b383b7bb6c159f76b8a5aad55d87 100644 (file)
@@ -89,3 +89,5 @@ MAC_STAT(sm_nreq,             uint64_t, 'a', "allocator requests")
 MAC_STAT(sm_nobj,              uint64_t, 'i', "outstanding allocations")
 MAC_STAT(sm_balloc,            uint64_t, 'i', "bytes allocated")
 MAC_STAT(sm_bfree,             uint64_t, 'i', "bytes free")
+
+MAC_STAT(backend_req,          uint64_t, 'a', "Backend requests made")