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

Synchronize the paramters after we call their accessor functions rather

than when we don't find one.

This makes changing runtime paramters work again, without the need to
ask for a nonexistent parameter to trigger the update.

Ticket: 136



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1795 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 96f991fc
......@@ -754,12 +754,12 @@ MCF_ParamSet(struct cli *cli, const char *param, const char *val)
for (pp = parspec; pp->name != NULL; pp++) {
if (!strcmp(pp->name, param)) {
pp->func(cli, pp, val);
MCF_ParamSync();
return;
}
}
cli_result(cli, CLIS_PARAM);
cli_out(cli, "Unknown paramter \"%s\".", param);
MCF_ParamSync();
}
......
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