]> git.kaiwu.me - haproxy.git/commit
MINOR: checks: Simplify functions to get step id and comment
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Mar 2020 12:31:19 +0000 (13:31 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commit3c29aa63938562d43c866c18e4b2372c390466b5
tree6205ebd9ea2944b36fb0ea21243c6f222a426737
parentefab6c61d946b7e421fb1843833d4b2f4737cdb9
MINOR: checks: Simplify functions to get step id and comment

The loop to find the id corresponding to the current rule in
tcpcheck_get_step_id() function has been simplified. And
tcpcheck_get_step_comment() function now only relies on the current rule to find
the rigth comment string. The step id is no longer used. To do so, we iterate
backward from the current step to find the first COMMENT rule immediately
preceedding the expect rule chain.
src/checks.c