From: phk Date: Fri, 7 Mar 2008 10:36:40 +0000 (+0000) Subject: Put waiting list shmlogs under diag_bitmap X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=576cf5f196fa8abd8567567aaf979aeee4b4484a;p=varnish Put waiting list shmlogs under diag_bitmap git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2556 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 01ed8bb7..bb686de2 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -550,7 +550,9 @@ cnt_lookup(struct sess *sp) * hash code to restart us, still in STP_LOOKUP, later. */ spassert(sp->objhead != NULL); - WSP(sp, SLT_Debug, "on waiting list <%s>", sp->objhead->hash); + if (params->diag_bitmap & 0x20) + WSP(sp, SLT_Debug, + "on waiting list <%s>", sp->objhead->hash); /* * There is a non-zero risk that we come here more than once * before we get through, in that case cnt_recv must be set diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 2efc1627..f18c51db 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -278,7 +278,8 @@ hsh_rush(struct objhead *oh) if (sp == NULL) return; VTAILQ_REMOVE(&oh->waitinglist, sp, list); - VSL(SLT_Debug, sp->id, "of waiting list"); + if (params->diag_bitmap & 0x20) + VSL(SLT_Debug, sp->id, "off waiting list"); WRK_QueueSession(sp); } } diff --git a/varnish-cache/bin/varnishd/mgt_param.c b/varnish-cache/bin/varnishd/mgt_param.c index 2861861b..8b6edac0 100644 --- a/varnish-cache/bin/varnishd/mgt_param.c +++ b/varnish-cache/bin/varnishd/mgt_param.c @@ -643,6 +643,7 @@ static const struct parspec parspec[] = { " 0x00000004 - kqueue debugging.\n" " 0x00000008 - mutex logging.\n" " 0x00000010 - mutex contests.\n" + " 0x00000020 - waiting list.\n" "Use 0x notation and do the bitor in your head :-)\n", 0, "0", "bitmap" },