mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
CLEANUP: init: remove useless test against MAX_THREADS in affinity loop
The test i < MAX_THREADS is pointless since the loop boundary is bound to global.nbthread which is already not greater.
This commit is contained in:
parent
51ec03a61d
commit
2a30f4d87e
1 changed files with 1 additions and 2 deletions
|
|
@ -3423,8 +3423,7 @@ int main(int argc, char **argv)
|
|||
if (ha_cpuset_count(&cpu_map.proc))
|
||||
ha_cpuset_and(&cpu_map.thread[i], &cpu_map.proc);
|
||||
|
||||
if (i < MAX_THREADS && /* only the first 32/64 threads may be pinned */
|
||||
ha_cpuset_count(&cpu_map.thread[i])) {/* only do this if the thread has a THREAD map */
|
||||
if (ha_cpuset_count(&cpu_map.thread[i])) {/* only do this if the thread has a THREAD map */
|
||||
#if defined(__APPLE__)
|
||||
int j;
|
||||
unsigned long set = cpu_map.thread[i].cpuset;
|
||||
|
|
|
|||
Loading…
Reference in a new issue