MINOR: server: pass adm and op cause to srv_update_status()
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 18 Apr 2023 09:00:17 +0000 (11:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Apr 2023 12:36:45 +0000 (14:36 +0200)
commit76e255520fe873c17cb8b3dc448adcd7f735a74b
treedbd79f1c62203472fd2ab6261fe4ba0890abc53c
parent10518c0d59b52910404348c5148e623dec9f8873
MINOR: server: pass adm and op cause to srv_update_status()

Operational and administrative state change causes are not propagated
through srv_update_status(), instead they are directly consumed within
the function to provide additional info during the call when required.

Thus, there is no valid reason for keeping adm and op causes within
server struct. We are wasting space and keeping uneeded complexity.

We now exlicitly pass change type (operational or administrative) and
associated cause to srv_update_status() so that no extra storage is
needed since those values are only relevant from srv_update_status().
include/haproxy/server-t.h
src/server.c