]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stream/cli: remove the unneeded init state from "show sess"
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 09:05:39 +0000 (11:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commitf3629f88acb627d0cf3d0b43f820e939bc18a358
treefaa33534debda72ec8e2219a8c36456768e5f85d
parent7fb591a4e4013bf294a24cbe7ed5c04fdb1121a1
CLEANUP: stream/cli: remove the unneeded init state from "show sess"

This state was only used to preset the list element. Now that we can
guarantee that the context can be properly preset during the parsing
we don't need this state anymore. The first pointer has to be set to
point to the first stream during the initial call which is detected
by the pointer not yet being set (null). Thanks to this we can also
remove one state check on the abort path.
src/stream.c