r5114 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Sat Aug 21 14:21:48 CEST 2010
Author: phk
Date: 2010-08-21 14:21:48 +0200 (Sat, 21 Aug 2010)
New Revision: 5114
Modified:
trunk/varnish-cache/bin/varnishd/cache_cli.c
Log:
Add a couple of documenting asserts.
Modified: trunk/varnish-cache/bin/varnishd/cache_cli.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_cli.c 2010-08-21 12:03:19 UTC (rev 5113)
+++ trunk/varnish-cache/bin/varnishd/cache_cli.c 2010-08-21 12:21:48 UTC (rev 5114)
@@ -85,6 +85,7 @@
cli_cb_before(const struct cli *cli)
{
+ ASSERT_CLI();
VSL(SLT_CLI, 0, "Rd %s", cli->cmd);
VCL_Poll();
VBE_Poll();
@@ -94,6 +95,8 @@
static void
cli_cb_after(const struct cli *cli)
{
+
+ ASSERT_CLI();
Lck_Unlock(&cli_mtx);
VSL(SLT_CLI, 0, "Wr %03u %u %s",
cli->result, vsb_len(cli->sb), vsb_data(cli->sb));
@@ -167,7 +170,6 @@
{ NULL }
};
-
/*--------------------------------------------------------------------
* Initialize the CLI subsystem
*/
More information about the varnish-commit
mailing list