[master] ec63cdb Fix double counting n_objectcore
Martin Blix Grydeland
martin at varnish-software.com
Tue Feb 23 17:44:47 CET 2016
commit ec63cdb1a06f13121311b675decd1ea4a8b4b1d0
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Feb 23 16:44:12 2016 +0100
Fix double counting n_objectcore
n_objectcore is incremented by ObjNew(), so HSH_Insert() should not
increase it again.
diff --git a/bin/varnishd/cache/cache_hash.c b/bin/varnishd/cache/cache_hash.c
index 90fbb25..7ab868f 100644
--- a/bin/varnishd/cache/cache_hash.c
+++ b/bin/varnishd/cache/cache_hash.c
@@ -297,7 +297,6 @@ HSH_Insert(struct worker *wrk, const void *digest, struct objcore *oc,
if (!VTAILQ_EMPTY(&oh->waitinglist))
hsh_rush(wrk, oh);
Lck_Unlock(&oh->mtx);
- wrk->stats->n_objectcore++;
wrk->stats->n_vampireobject++;
}
More information about the varnish-commit
mailing list