[master] 230315e0b More semi-dynamic parameter defaults
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Sun Mar 15 18:09:07 UTC 2020
commit 230315e0b0f6a57859424aafd12d7193c00df16e
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Sun Mar 15 19:06:52 2020 +0100
More semi-dynamic parameter defaults
diff --git a/bin/varnishd/mgt/mgt_param_tbl.c b/bin/varnishd/mgt/mgt_param_tbl.c
index ea4da117a..f0fabec51 100644
--- a/bin/varnishd/mgt/mgt_param_tbl.c
+++ b/bin/varnishd/mgt/mgt_param_tbl.c
@@ -55,7 +55,8 @@ struct parspec mgt_parspec[] = {
"dlopen(3) loadable object. Any occurrence of %s in "
"the string will be replaced with the source file name, "
"and %o will be replaced with the output file name.",
- MUST_RELOAD },
+ MUST_RELOAD,
+ NULL, NULL, "defined when Varnish is built" },
{ "vcl_path", tweak_string, &mgt_vcl_path,
NULL, NULL, VARNISH_VCL_DIR,
NULL,
diff --git a/bin/varnishd/mgt/mgt_pool.c b/bin/varnishd/mgt/mgt_pool.c
index 63b3ede40..a574cd17a 100644
--- a/bin/varnishd/mgt/mgt_pool.c
+++ b/bin/varnishd/mgt/mgt_pool.c
@@ -89,7 +89,7 @@ tweak_thread_pool_max(struct vsb *vsb, const struct parspec *par,
struct parspec WRK_parspec[] = {
{ "thread_pools", tweak_uint, &mgt_param.wthread_pools,
- "1", NULL, "2",
+ "1", NULL, /* maximum defined in mgt_param.c */ "2",
"pools",
"Number of worker thread pools.\n"
"\n"
@@ -104,7 +104,8 @@ struct parspec WRK_parspec[] = {
"\n"
"Can be increased on the fly, but decreases require a "
"restart to take effect.",
- EXPERIMENTAL | DELAYED_EFFECT },
+ EXPERIMENTAL | DELAYED_EFFECT,
+ NULL, "defined when Varnish is built" },
{ "thread_pool_max", tweak_thread_pool_max, &mgt_param.wthread_max,
NULL, NULL, "5000",
"threads",
More information about the varnish-commit
mailing list