Skip to content

Commit

Permalink
VIP16: retire parameters aliases
Browse files Browse the repository at this point in the history
Ref: #2830
  • Loading branch information
nigoroll committed Nov 19, 2018
1 parent 518f46b commit dc1df48
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 74 deletions.
18 changes: 0 additions & 18 deletions bin/varnishd/mgt/mgt_param_tbl.c
Expand Up @@ -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) "
Expand All @@ -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) "
Expand Down Expand Up @@ -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 }
};
1 change: 0 additions & 1 deletion bin/varnishd/mgt/mgt_param_tweak.c
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion bin/varnishtest/tests/m00003.vtc
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions bin/varnishtest/tests/r02307.vtc

This file was deleted.

6 changes: 6 additions & 0 deletions doc/changes.rst
Expand Up @@ -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
Expand All @@ -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)
Expand Down
50 changes: 0 additions & 50 deletions include/tbl/params.h
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit dc1df48

Please sign in to comment.