commit | f3b48a808e63f7e041326e0a71ad916b2600fad4 | [log] [tgz] |
---|---|---|
author | Aurelien DARRAGON <adarragon@haproxy.com> | Fri Apr 14 18:07:09 2023 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Apr 21 14:36:45 2023 +0200 |
tree | 1cce3f6bb702d497263525c741c2c1094ba4e31e | |
parent | 9b1ccd732530d8d9a97e9800131456b9cb09d9f9 [diff] |
MINOR: server: srv_append_status refacto srv_append_status() has become a swiss-knife function over time. It is used from server code and also from checks code, with various inputs and distincts code paths, making it very hard to guess the actual behavior of the function (resulting string output). To simplify the logic behind it, we're dividing it in multiple contextual functions that take simple inputs and do explicit things, making them more predictable and easier to maintain.