]> err.no Git - varnish/commitdiff
Synchronize the paramters after we call their accessor functions rather
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Aug 2007 19:37:44 +0000 (19:37 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Aug 2007 19:37:44 +0000 (19:37 +0000)
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

index 289fd021b2e9f939a6d89b176cfcadd3403dea0d..80d5eadceb0effab55a7e311d673a2c9fa7dd1ca 100644 (file)
@@ -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();
 }