BUG/MINOR: server: make srv_alloc_lb() allocate lb_nodes for consistent hash
authorWilly Tarreau <w@1wt.eu>
Tue, 20 Apr 2021 09:37:45 +0000 (11:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Apr 2021 09:39:54 +0000 (11:39 +0200)
commitdcb121fd9ce25ab5087fb45442bef24c031d2fe6
tree2e62e47bed9cba5408264e33af057c48424c1147
parent942b89f7dc9a6fcd2deedef078aba67609d12e54
BUG/MINOR: server: make srv_alloc_lb() allocate lb_nodes for consistent hash

The test in srv_alloc_lb() to allocate the lb_nodes[] array used in the
consistent hash was incorrect, it wouldn't do it for consistent hash and
could do it for regular random.

No backport is needed as this was added for dynamic servers in 2.4-dev by
commit f99f77a50 ("MEDIUM: server: implement 'add server' cli command").
src/server.c