]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: thread: remove MAX_THREADS limitation
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Jul 2022 13:11:32 +0000 (15:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:43:10 +0000 (19:43 +0200)
This one is now causing difficulties during the development phase and
it's going to disappear anyway, let's get rid of it.

src/thread.c

index 88bd23271816f6c339c93d56c2a5a148c8e18c2f..1a0f5f29288dad2932727174e0843f657f4ed957 100644 (file)
@@ -995,13 +995,6 @@ static void __thread_init(void)
 {
        char *ptr = NULL;
 
-       if (MAX_THREADS < 1 || MAX_THREADS > LONGBITS) {
-               ha_alert("MAX_THREADS value must be between 1 and %d inclusive; "
-                        "HAProxy was built with value %d, please fix it and rebuild.\n",
-                        LONGBITS, MAX_THREADS);
-               exit(1);
-       }
-
        preload_libgcc_s();
 
        thread_cpus_enabled_at_boot = thread_cpus_enabled();