]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: always initialize the stksess shard value
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Nov 2022 15:08:35 +0000 (16:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Nov 2022 15:33:37 +0000 (16:33 +0100)
commite548a7af45d5d460cfd9779bd451736a9759c270
tree7d0bc137cb8d20d27b1faa7e73fe1dade2045fdd
parentf8c7709013929391c507b57a25134ea96ffa1c6c
BUG/MINOR: peers: always initialize the stksess shard value

We need to initialize the shard value in __stksess_init() because there is
not necessarily a key to make it happen later, resulting in an uninitialized
shard value appearing in the entry, typically when entries are learned from
peers. This fixes commit 36d156564 ("MINOR: peers: Support for peer shards"),
no backport is needed.

Note however that it is not sufficient to completely fix the peers code, the
shard value remains zero because the setting of the key was open-coded in
the peers code and these parts were not identified when adding support for
shards.
src/stick_table.c