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
dc1df48f
Commit
dc1df48f
authored
Nov 19, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VIP16: retire parameters aliases
Ref: #2830
parent
518f46bb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
74 deletions
+7
-74
mgt_param_tbl.c
bin/varnishd/mgt/mgt_param_tbl.c
+0
-18
mgt_param_tweak.c
bin/varnishd/mgt/mgt_param_tweak.c
+0
-1
m00003.vtc
bin/varnishtest/tests/m00003.vtc
+1
-1
r02307.vtc
bin/varnishtest/tests/r02307.vtc
+0
-4
changes.rst
doc/changes.rst
+6
-0
params.h
include/tbl/params.h
+0
-50
No files found.
bin/varnishd/mgt/mgt_param_tbl.c
View file @
dc1df48f
...
...
@@ -55,12 +55,6 @@ struct parspec mgt_parspec[] = {
"and %o will be replaced with the output file name."
,
MUST_RELOAD
,
VCC_CC
,
NULL
},
{
"vcl_dir"
,
tweak_string
,
&
mgt_vcl_path
,
NULL
,
NULL
,
"Old name for vcl_path, use that instead."
,
0
,
VARNISH_VCL_DIR
,
NULL
},
{
"vcl_path"
,
tweak_string
,
&
mgt_vcl_path
,
NULL
,
NULL
,
"Directory (or colon separated list of directories) "
...
...
@@ -73,12 +67,6 @@ struct parspec mgt_parspec[] = {
0
,
VARNISH_VCL_DIR
,
NULL
},
{
"vmod_dir"
,
tweak_string
,
&
mgt_vmod_path
,
NULL
,
NULL
,
"Old name for vmod_path, use that instead."
,
0
,
VARNISH_VMOD_DIR
,
NULL
},
{
"vmod_path"
,
tweak_string
,
&
mgt_vmod_path
,
NULL
,
NULL
,
"Directory (or colon separated list of directories) "
...
...
@@ -146,12 +134,6 @@ struct parspec mgt_parspec[] = {
MEMPOOL_TEXT
,
0
,
"10,100,10"
,
""
},
{
"shm_reclen"
,
tweak_vsl_reclen
,
&
mgt_param
.
vsl_reclen
,
"16b"
,
NULL
,
"Old name for vsl_reclen, use that instead."
,
0
,
"255b"
,
"bytes"
},
{
NULL
,
NULL
,
NULL
}
};
bin/varnishd/mgt/mgt_param_tweak.c
View file @
dc1df48f
...
...
@@ -340,7 +340,6 @@ tweak_vsl_buffer(struct vsb *vsb, const struct parspec *par, const char *arg)
return
(
-
1
);
*
d1
=
dest
;
MCF_ParamConf
(
MCF_MAXIMUM
,
"vsl_reclen"
,
"%u"
,
*
d1
-
12
);
MCF_ParamConf
(
MCF_MAXIMUM
,
"shm_reclen"
,
"%u"
,
*
d1
-
12
);
return
(
0
);
}
...
...
bin/varnishtest/tests/m00003.vtc
View file @
dc1df48f
...
...
@@ -18,7 +18,7 @@ varnish v1 -errvcl {Could not load VMOD std} {
import std;
}
varnish v1 -cliok "param.set vmod_
dir
${topbuild}/lib/libvmod_std/.libs/"
varnish v1 -cliok "param.set vmod_
path
${topbuild}/lib/libvmod_std/.libs/"
varnish v1 -vcl+backend {
import std;
...
...
bin/varnishtest/tests/r02307.vtc
deleted
100644 → 0
View file @
518f46bb
varnishtest "shm_reclen alias for vsl_reclen"
varnish v1 -cli "param.set shm_reclen 42"
varnish v1 -cliexpect 42b "param.show vsl_reclen"
doc/changes.rst
View file @
dc1df48f
...
...
@@ -103,6 +103,11 @@ Varnish Cache trunk (ongoing)
* Varnish-based tools using the VUT interface should now consider
using the ``VUT_Usage()`` function for consistency
* retired long deprecated parameters (VIP16_). Replacement mapping is:
``shm_reclen`` -> ``vsl_reclen``
``vcl_dir`` -> ``vcl_path``
``vmod_dir`` -> ``vmod_path``
.. _2809: https://github.com/varnishcache/varnish-cache/issues/2809
.. _2820: https://github.com/varnishcache/varnish-cache/issues/2820
.. _2815: https://github.com/varnishcache/varnish-cache/issues/2815
...
...
@@ -117,6 +122,7 @@ Varnish Cache trunk (ongoing)
.. _2418: https://github.com/varnishcache/varnish-cache/issues/2418
.. _2788: https://github.com/varnishcache/varnish-cache/issues/2788
.. _2790: https://github.com/varnishcache/varnish-cache/issues/2790
.. _VIP16: https://github.com/varnishcache/varnish-cache/wiki/VIP16%3A-Retire-parameters-aliases
================================
Varnish Cache 6.1.0 (2018-09-17)
...
...
include/tbl/params.h
View file @
dc1df48f
...
...
@@ -1040,23 +1040,6 @@ PARAM(
)
#undef XYZZY
#if 0
/* actual location mgt_param_tbl.c */
PARAM(
/* name */ shm_reclen,
/* typ */ vsl_reclen,
/* min */ "16b",
/* max */ NULL,
/* default */ "255b",
/* units */ "bytes",
/* flags */ 0,
/* s-text */
"Old name for vsl_reclen, use that instead.",
/* l-text */ "",
/* func */ NULL
)
#endif
PARAM
(
/* name */
shortlived
,
/* typ */
timeout
,
...
...
@@ -1585,39 +1568,6 @@ PARAM(
/* func */
NULL
)
#if 0
/* actual location mgt_param_tbl.c */
PARAM(
/* name */ vcl_dir,
/* typ */ string,
/* min */ NULL,
/* max */ NULL,
/* default */ "/opt/varnish/etc/varnish",
/* units */ NULL,
/* flags */ 0,
/* s-text */
"Directory from which relative VCL filenames (vcl.load and "
"include) are opened.",
/* l-text */ "",
/* func */ NULL
)
/* actual location mgt_param_tbl.c */
PARAM(
/* name */ vmod_dir,
/* typ */ string,
/* min */ NULL,
/* max */ NULL,
/* default */ "/opt/varnish/lib/varnish/vmods",
/* units */ NULL,
/* flags */ 0,
/* s-text */
"Directory where Varnish modules are to be found.",
/* l-text */ "",
/* func */ NULL
)
#endif
PARAM
(
/* name */
vsl_buffer
,
/* typ */
vsl_buffer
,
...
...
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