]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stktable: Use an enum to type a sticky session in the updates tree
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Oct 2025 09:54:56 +0000 (11:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Oct 2025 13:05:05 +0000 (15:05 +0200)
commit451ffafea4778807bb41b53264d63a0479ba487f
tree47d0baf8f55e9ac4f576a234cf653de7680f4f64
parent9662d8fac1ec7f56e140a7b967e44f48da9b4310
MINOR: stktable: Use an enum to type a sticky session in the updates tree

Instead of using a boolean to know if an entry in the updates tree is local
or not, an enum is used. This change will be mandatory when updates tree
will be replaced by a list to be able to add markers owned by each peer.

So now a sticky sessin has no type (STKSESS_UPDT_NONE) if it is not in the
updates tree. STKSESS_UPDT_LOCAL is used for local entries and
STKSESS_UPDT_REMOTE for remote ones. STKSESS_UPDT_MARKER is not used for
now.
include/haproxy/stick_table-t.h
src/stick_table.c