Commit c81eced9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Dont tell worker "0auto" if we mean "0cold"

parent 0c975f60
...@@ -430,7 +430,7 @@ mgt_vcl_setstate(struct cli *cli, struct vclprog *vp, const char *vs) ...@@ -430,7 +430,7 @@ mgt_vcl_setstate(struct cli *cli, struct vclprog *vp, const char *vs)
} }
i = mgt_cli_askchild(&status, &p, "vcl.state %s %d%s\n", i = mgt_cli_askchild(&status, &p, "vcl.state %s %d%s\n",
vp->name, warm, vp->state); vp->name, warm, vs);
if (i && cli != NULL) { if (i && cli != NULL) {
VCLI_SetResult(cli, status); VCLI_SetResult(cli, status);
VCLI_Out(cli, "%s", p); VCLI_Out(cli, "%s", p);
...@@ -750,6 +750,7 @@ mcf_vcl_discard(struct cli *cli, const char * const *av, void *priv) ...@@ -750,6 +750,7 @@ mcf_vcl_discard(struct cli *cli, const char * const *av, void *priv)
(void)mgt_vcl_setstate(cli, vp, VCL_STATE_COLD); (void)mgt_vcl_setstate(cli, vp, VCL_STATE_COLD);
if (MCH_Running()) { if (MCH_Running()) {
/* XXX If this fails the child is crashing, figure that later */ /* XXX If this fails the child is crashing, figure that later */
assert(!vp->warm);
(void)mgt_cli_askchild(&status, &p, "vcl.discard %s\n", av[2]); (void)mgt_cli_askchild(&status, &p, "vcl.discard %s\n", av[2]);
free(p); free(p);
} }
......
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