]> err.no Git - varnish/commitdiff
Make it possible (at great performance loss) to force straight
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 3 Feb 2009 12:45:06 +0000 (12:45 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 3 Feb 2009 12:45:06 +0000 (12:45 +0000)
time sequencing of shmlog records for debugging purposes.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3570 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_param.c
varnish-cache/bin/varnishd/shmlog.c

index 1a9e03b0f77c737656bb50a2a26b8c4c95dc2874..8205a96aa097c3d7b5fbb02810c456ca3a758897 100644 (file)
@@ -745,6 +745,7 @@ static const struct parspec input_parspec[] = {
 #ifdef HAVE_ABORT2
                "  0x00008000 - panic to abort2().\n"
 #endif
+               "  0x00010000 - synchronize shmlog.\n"
                "Use 0x notation and do the bitor in your head :-)\n",
                0,
                "0", "bitmap" },
index 7794a334e96b2fdd0c59023859a32dbf1b43e8d6..0cc9ad99405714abf2ced2115f7a3cf83770dea3 100644 (file)
@@ -231,6 +231,8 @@ WSLR(struct worker *w, enum shmlogtag tag, int id, txt t)
        memcpy(p + SHMLOG_DATA, t.b, l);
        vsl_hdr(tag, p, l, id);
        w->wlr++;
+       if (params->diag_bitmap & 0x10000)
+               WSL_Flush(w, 0);
 }
 
 /*--------------------------------------------------------------------*/
@@ -269,6 +271,8 @@ WSL(struct worker *w, enum shmlogtag tag, int id, const char *fmt, ...)
                w->wlr++;
        }
        va_end(ap);
+       if (params->diag_bitmap & 0x10000)
+               WSL_Flush(w, 0);
 }
 
 /*--------------------------------------------------------------------*/