]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: listener/config: make "thread" always support up to LONGBITS
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 15:18:23 +0000 (17:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:41:26 +0000 (19:41 +0200)
The difference is subtle but in one place there was MAXTHREADS and this
will not work anymore once it goes over 64.

src/listener.c

index 59c31cf03f1a3148355e377cf127e7f79c97ffb1..6b088026f8b5e3ad260bf9c81ddad7a8fbe7d590 100644 (file)
@@ -1808,8 +1808,8 @@ static int bind_parse_thread(char **args, int cur_arg, struct proxy *px, struct
                memprintf(err, "'%s' multiple thread-groups are not supported", args[cur_arg + 1]);
                return ERR_ALERT | ERR_FATAL;
        }
-       
-       if (parse_process_number(sep, &thread, MAX_THREADS, NULL, err)) {
+
+       if (parse_process_number(sep, &thread, LONGBITS, NULL, err)) {
                memprintf(err, "'%s' : %s", sep, *err);
                return ERR_ALERT | ERR_FATAL;
        }