Commit 9f5c5c49 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 2215-2220 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r2215 | des | 2007-10-30 15:06:37 +0100 (Tue, 30 Oct 2007) | 3 lines
  
  When DIAGNOSTICS is defined, log every step that each session goes through,
  along with some vital statistics, and flush the log regularly.
........
  r2220 | des | 2007-10-30 15:40:55 +0100 (Tue, 30 Oct 2007) | 5 lines
  
  Refine the debugging string: we don't really need the XID, but we do need
  the thread ID in order to locate the correct thread in gdb.  Furthermore,
  we must use VSL rather than WSL since the session might actually not have
  a worker at that point; but if it does, make sure to flush the log first.
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@2237 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2f70b3b9
......@@ -783,7 +783,22 @@ CNT_Session(struct sess *sp)
CHECK_OBJ(w->nobjhead, OBJHEAD_MAGIC);
switch (sp->step) {
#define STEP(l,u) case STP_##u: done = cnt_##l(sp); break;
#ifdef DIAGNOSTICS
#define STEP(l,u) \
case STP_##u: \
if (sp->wrk) \
WSL_Flush(sp->wrk); \
VSL(SLT_Debug, sp->id, \
"thr %p STP_%s sp %p obj %p vcl %p", \
pthread_self(), #u, sp, sp->obj, sp->vcl); \
done = cnt_##l(sp); \
break;
#else
#define STEP(l,u) \
case STP_##u: \
done = cnt_##l(sp); \
break;
#endif
#include "steps.h"
#undef STEP
default: INCOMPL();
......
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