r3570 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Feb 3 13:45:07 CET 2009
Author: phk
Date: 2009-02-03 13:45:06 +0100 (Tue, 03 Feb 2009)
New Revision: 3570
Modified:
trunk/varnish-cache/bin/varnishd/mgt_param.c
trunk/varnish-cache/bin/varnishd/shmlog.c
Log:
Make it possible (at great performance loss) to force straight
time sequencing of shmlog records for debugging purposes.
Modified: trunk/varnish-cache/bin/varnishd/mgt_param.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_param.c 2009-02-03 12:42:39 UTC (rev 3569)
+++ trunk/varnish-cache/bin/varnishd/mgt_param.c 2009-02-03 12:45:06 UTC (rev 3570)
@@ -745,6 +745,7 @@
#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" },
Modified: trunk/varnish-cache/bin/varnishd/shmlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/shmlog.c 2009-02-03 12:42:39 UTC (rev 3569)
+++ trunk/varnish-cache/bin/varnishd/shmlog.c 2009-02-03 12:45:06 UTC (rev 3570)
@@ -231,6 +231,8 @@
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 @@
w->wlr++;
}
va_end(ap);
+ if (params->diag_bitmap & 0x10000)
+ WSL_Flush(w, 0);
}
/*--------------------------------------------------------------------*/
More information about the varnish-commit
mailing list