MINOR: log/balance: set lbprm tot_weight on server on queue/dequeue
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 21 Nov 2023 12:19:12 +0000 (13:19 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Nov 2023 15:27:55 +0000 (16:27 +0100)
commit20437b3e3230eb1545d5ce0467338606c1b2775d
treeb5c76b891338093d3e10111cdc70da3d38636456
parent661c079bc54efd43f845016f3bdd16d9acaa5f3a
MINOR: log/balance: set lbprm tot_weight on server on queue/dequeue

Maintain proper px->lbprm.tot_weight for log backends. server's weight is
considered as 1 as long as the server is usable.

This will allow the stats page to correctly display the proxy status since
the check currently relies on proxy's lbprm.tot_weight variable.
src/log.c