]> git.kaiwu.me - haproxy.git/commit
CLEANUP: haload: factor out two more duplicated -ee blocks
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 24 Aug 2026 14:07:42 +0000 (16:07 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 24 Aug 2026 17:16:05 +0000 (19:16 +0200)
commit6292861aa2dd6698d4506952ef0780a1f8f8a5f9
treea708b38dd79c0f798e53074b470ea542ffa78349
parentb6b8ba303ac1e28b708cb526a00b68723b83bf9b
CLEANUP: haload: factor out two more duplicated -ee blocks

hld_usr_schedule() and hld_rate_task() had the same four lines
to reset a thread's rate history on a new -ee ramp generation. Move
this into hld_thr_sync_ramp_gen().

hld_usr_schedule() and the budget check added to hld_usr_task() had
the same throttle max computation. Move this into
hld_thr_rate_max(), built on top of hld_thr_rate_share().
src/haload.c