Commit 93977548 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make separate stats counters for number of object checked against purges

and number of regexps checked.



git-svn-id: http://www.varnish-cache.org/svn/trunk@3037 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 213f1ac9
......@@ -176,7 +176,8 @@ BAN_CheckObject(struct object *o, const char *url, const char *hash)
o->ban->refcount--;
if (b == o->ban) /* not banned */
b0->refcount++;
VSL_stats->n_purge_test++;
VSL_stats->n_purge_obj_test++;
VSL_stats->n_purge_re_test += tests;
UNLOCK(&ban_mtx);
if (b == o->ban) { /* not banned */
......
......@@ -120,4 +120,5 @@ MAC_STAT(n_vcl_discard, uint64_t, 'a', "N vcl discarded")
MAC_STAT(n_purge, uint64_t, 'i', "N total active purges")
MAC_STAT(n_purge_add, uint64_t, 'a', "N new purges added")
MAC_STAT(n_purge_retire, uint64_t, 'a', "N old purges deleted")
MAC_STAT(n_purge_test, uint64_t, 'a', "N purge record tests")
MAC_STAT(n_purge_obj_test, uint64_t, 'a', "N objects tested")
MAC_STAT(n_purge_re_test, uint64_t, 'a', "N regexps tested against")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment