]> git.kaiwu.me - haproxy.git/commit
CLEANUP: log: Stop touching `struct stream` internals for `%ID`
authorTim Duesterhus <tim@bastelstu.be>
Mon, 13 Apr 2026 17:37:29 +0000 (19:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 Apr 2026 18:01:42 +0000 (20:01 +0200)
commit7ff26271122fd3e12ab782a1ad0167f22d913ae9
treed20bf9e8d1dafbcbe580b9082c828a8244e744d2
parent38796d4c061ed7698e6202d10e6e78c479044cb4
CLEANUP: log: Stop touching `struct stream` internals for `%ID`

Use the return value of `stream_generate_unique_id()` instead of relying on the
`unique_id` field of `struct stream` when handling the `%ID` log placeholder.
This also allowed to unify the "stream available" and "stream not available"
paths.

Reviewed-by: Volker Dusch <github@wallbash.com>
src/log.c