]> git.kaiwu.me - 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>
Fri, 17 Oct 2025 14:38:53 +0000 (16:38 +0200)
commit8d85f724fdfca2d9550d61bd1ef5221744129942
treee3835107a2cc0f12fa6b6ccae015da6155c09d5c
parentded62e3ea45901f2763df93bb5c2851a224c91a6
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