mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
CLEANUP: init: remove useless assignment of nbthread
The old test consisting in setting global.nbthread if lower than 1 is useless nowadays since it's already done in check_config_validity().
This commit is contained in:
parent
400b3ae2d5
commit
57c3e75d4e
@ -2227,6 +2227,7 @@ static void init(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Note: global.nbthread will be initialized as part of this call */
|
||||||
err_code |= check_config_validity();
|
err_code |= check_config_validity();
|
||||||
for (px = proxies_list; px; px = px->next) {
|
for (px = proxies_list; px; px = px->next) {
|
||||||
struct server *srv;
|
struct server *srv;
|
||||||
@ -2598,9 +2599,6 @@ static void init(int argc, char **argv)
|
|||||||
global.mode &= ~(MODE_DAEMON | MODE_QUIET);
|
global.mode &= ~(MODE_DAEMON | MODE_QUIET);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global.nbthread < 1)
|
|
||||||
global.nbthread = 1;
|
|
||||||
|
|
||||||
/* Realloc trash buffers because global.tune.bufsize may have changed */
|
/* Realloc trash buffers because global.tune.bufsize may have changed */
|
||||||
if (!init_trash_buffers(0)) {
|
if (!init_trash_buffers(0)) {
|
||||||
ha_alert("failed to initialize trash buffers.\n");
|
ha_alert("failed to initialize trash buffers.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user