Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
38f99fa6
Commit
38f99fa6
authored
Feb 17, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce a new category of boiler-plate notice for parameters:
things you should not muck about with unless I tell you to.
parent
a1f4fe2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
mgt_param.c
bin/varnishd/mgt_param.c
+7
-1
vparam.h
bin/varnishd/vparam.h
+5
-4
No files found.
bin/varnishd/mgt_param.c
View file @
38f99fa6
...
...
@@ -483,6 +483,10 @@ tweak_diag_bitmap(struct cli *cli, const struct parspec *par, const char *arg)
"this parameter, or if the default value is even sensible. " \
"Caution is advised, and feedback is most welcome."
#define WIZARD_TEXT \
"\nNB: Do not change this parameter, unless a developer tell " \
"you to do so."
/*
* Remember to update varnishd.1 whenever you add / remove a parameter or
* change its default value.
...
...
@@ -862,7 +866,7 @@ static const struct parspec input_parspec[] = {
&
master
.
critbit_cooloff
,
60
,
254
,
"How long time the critbit hasher keeps deleted objheads "
"on the cooloff list.
\n
"
,
EXPERIMENTAL
,
WIZARD
,
"180.0"
,
"s"
},
{
"vcl_dir"
,
tweak_string
,
&
mgt_vcl_dir
,
0
,
0
,
"Directory from which relative VCL filenames (vcl.load and "
...
...
@@ -958,6 +962,8 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
mcf_wrap
(
cli
,
MUST_RELOAD_TEXT
);
if
(
pp
->
flags
&
MUST_RESTART
)
mcf_wrap
(
cli
,
MUST_RESTART_TEXT
);
if
(
pp
->
flags
&
WIZARD
)
mcf_wrap
(
cli
,
WIZARD_TEXT
);
if
(
!
lfmt
)
return
;
else
...
...
bin/varnishd/vparam.h
View file @
38f99fa6
...
...
@@ -41,10 +41,11 @@ struct parspec {
double
max
;
const
char
*
descr
;
int
flags
;
#define DELAYED_EFFECT 1
#define EXPERIMENTAL 2
#define MUST_RESTART 4
#define MUST_RELOAD 8
#define DELAYED_EFFECT (1<<0)
#define EXPERIMENTAL (1<<1)
#define MUST_RESTART (1<<2)
#define MUST_RELOAD (1<<3)
#define WIZARD (1<<4)
const
char
*
def
;
const
char
*
units
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment