[master] 65d9628 Count Trylocks that succeed
Poul-Henning Kamp
phk at varnish-cache.org
Thu Dec 15 09:35:14 CET 2011
commit 65d9628481ea72ae2fc939f34391bfc01f92c179
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Dec 15 08:35:02 2011 +0000
Count Trylocks that succeed
diff --git a/bin/varnishd/cache/cache_lck.c b/bin/varnishd/cache/cache_lck.c
index 78b5e42..cff9845 100644
--- a/bin/varnishd/cache/cache_lck.c
+++ b/bin/varnishd/cache/cache_lck.c
@@ -118,6 +118,7 @@ Lck__Trylock(struct lock *lck, const char *p, const char *f, int l)
if (r == 0) {
AZ(ilck->held);
ilck->held = 1;
+ ilck->stat->locks++;
ilck->owner = pthread_self();
}
return (r);
More information about the varnish-commit
mailing list