]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: Make 'resolution_pool_size' directive fatal
authorTim Duesterhus <tim@bastelstu.be>
Tue, 14 May 2019 18:57:56 +0000 (20:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 May 2019 16:02:03 +0000 (18:02 +0200)
This directive never appeared in a stable release and instead was
introduced and deprecated within 1.8-dev. While it technically could
be outright removed we detect it and error out for good measure.

doc/configuration.txt
src/cfgparse.c

index 8aa9f2c7b9a462b53009022d6f4fd4da24595a55..7543cc3fb490df62f42e74e18f08c39d681f4b1d 100644 (file)
@@ -12759,11 +12759,6 @@ hold <status> <period>
 
   Default value is 10s for "valid", 0s for "obsolete" and 30s for others.
 
-resolution_pool_size <nb>  (deprecated)
-  Defines the number of resolutions available in the pool for this resolvers.
-  If not defines, it defaults to 64. If your configuration requires more than
-  <nb>, then HAProxy will return an error when parsing the configuration.
-
 resolve_retries <nb>
   Defines the number <nb> of queries to send to resolve a server name before
   giving up.
index ab5a2eb75c1f3f16edf1280e43245ef7517e0a68..a16628a5c2d2c0dd3379b6b721910c48bff8d8d8 100644 (file)
@@ -1250,9 +1250,9 @@ resolv_out:
                curr_resolvers->accepted_payload_size = i;
        }
        else if (strcmp(args[0], "resolution_pool_size") == 0) {
-               ha_warning("parsing [%s:%d] : '%s' directive is now deprecated and ignored.\n",
+               ha_alert("parsing [%s:%d] : '%s' directive is not supported anymore (it never appeared in a stable release).\n",
                           file, linenum, args[0]);
-               err_code |= ERR_WARN;
+               err_code |= ERR_ALERT | ERR_FATAL;
                goto out;
        }
        else if (strcmp(args[0], "resolve_retries") == 0) {