Commit 1ab4a156 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a couple of documenting asserts.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5114 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b3ad75ee
...@@ -85,6 +85,7 @@ static void ...@@ -85,6 +85,7 @@ static void
cli_cb_before(const struct cli *cli) cli_cb_before(const struct cli *cli)
{ {
ASSERT_CLI();
VSL(SLT_CLI, 0, "Rd %s", cli->cmd); VSL(SLT_CLI, 0, "Rd %s", cli->cmd);
VCL_Poll(); VCL_Poll();
VBE_Poll(); VBE_Poll();
...@@ -94,6 +95,8 @@ cli_cb_before(const struct cli *cli) ...@@ -94,6 +95,8 @@ cli_cb_before(const struct cli *cli)
static void static void
cli_cb_after(const struct cli *cli) cli_cb_after(const struct cli *cli)
{ {
ASSERT_CLI();
Lck_Unlock(&cli_mtx); Lck_Unlock(&cli_mtx);
VSL(SLT_CLI, 0, "Wr %03u %u %s", VSL(SLT_CLI, 0, "Wr %03u %u %s",
cli->result, vsb_len(cli->sb), vsb_data(cli->sb)); cli->result, vsb_len(cli->sb), vsb_data(cli->sb));
...@@ -167,7 +170,6 @@ static struct cli_proto master_cmds[] = { ...@@ -167,7 +170,6 @@ static struct cli_proto master_cmds[] = {
{ NULL } { NULL }
}; };
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
* Initialize the CLI subsystem * Initialize the CLI subsystem
*/ */
......
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