]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: config: Add a warning if tune.chksize is used
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Nov 2020 16:33:03 +0000 (17:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Nov 2020 09:30:23 +0000 (10:30 +0100)
This option is now deprecated. It is recent, but it is now marked as
deprecated as far as 2.2. Thus, there is now a warning in the 2.4 if this
option is still used. It will be removed in 2.5.

Becaue the 2.3 is quite new, this patch may be backported to 2.3.

src/cfgparse-global.c

index ca447bb97067dbf6b273dedb744ad458ac8351ea..ba7249e1fec7e020f3d86ccf97aa567322c28489 100644 (file)
@@ -190,7 +190,8 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
                global.tune.maxaccept = max;
        }
        else if (!strcmp(args[0], "tune.chksize")) {
-               /* Deprecated now */
+               ha_warning("parsing [%s:%d]: the option '%s' is deprecated and will be removed in next version.\n",
+                          file, linenum, args[0]);
        }
        else if (!strcmp(args[0], "tune.recv_enough")) {
                if (alertif_too_many_args(1, file, linenum, args, &err_code))