]> git.kaiwu.me - haproxy.git/commit
MEDIUM: servers: Remove cur_sess, and use served instead
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 3 Feb 2026 06:14:25 +0000 (07:14 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 2 Mar 2026 12:46:17 +0000 (13:46 +0100)
commite3c4ae966c977f57d503fe9cfb14091c19e7de98
tree5d9360528e7dc8db73e81d0fd5e1e6b737c2f12a
parent131113bbe567e64b00ae61ff49d53e2944215ff1
MEDIUM: servers: Remove cur_sess, and use served instead

In struct server, cur_sess and served mostly have the same purpose.
We can just remove cur_sess, and use served instead, both share the same
cache line, and that cache line is quite busy, so removing some atomic
operation on it can be beneficial.
14 files changed:
dev/gdb/servers.gdb
include/haproxy/queue.h
include/haproxy/server-t.h
src/backend.c
src/check.c
src/cli.c
src/extcheck.c
src/haproxy.c
src/hlua_fcn.c
src/http_ana.c
src/log.c
src/server.c
src/stats-proxy.c
src/stream.c