From: phk Date: Sun, 5 Aug 2007 19:37:44 +0000 (+0000) Subject: Synchronize the paramters after we call their accessor functions rather X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d12955b52848bc3c3eeb26da4b499130a01284e1;p=varnish 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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1795 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_param.c b/varnish-cache/bin/varnishd/mgt_param.c index 289fd021..80d5eadc 100644 --- a/varnish-cache/bin/varnishd/mgt_param.c +++ b/varnish-cache/bin/varnishd/mgt_param.c @@ -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(); }