BUG/MINOR: config: fix NUMA topology detection on FreeBSD
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2023 17:26:07 +0000 (19:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:46:15 +0000 (09:46 +0200)
commite1a0107f9c40b366efed75372c92029c13bb7b46
tree274f85c6ef49385f6b52887ff17c7ac14a43cc28
parent997ad155fed9d4dbfec504b611b7cf57dd889a11
BUG/MINOR: config: fix NUMA topology detection on FreeBSD

In 2.6-dev1, NUMA topology detection was enabled on FreeBSD with commit
f5d48f8b3 ("MEDIUM: cfgparse: numa detect topology on FreeBSD."). But
it suffers from a minor bug which is that it forgets to check for the
number of domains and always emits a confusing warning indicating that
multiple sockets were found while it's not the case.

This can be backported to 2.6.
src/cfgparse.c