From d12955b52848bc3c3eeb26da4b499130a01284e1 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 5 Aug 2007 19:37:44 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/mgt_param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5