]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mworker/cli: fix show proc pagination using reload counter
authorAlexander Stephan <alexander.stephan@sap.com>
Tue, 30 Dec 2025 10:56:45 +0000 (10:56 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 5 Jan 2026 07:59:34 +0000 (08:59 +0100)
commit4c10d9c70c86962f81a5e9973724b4439ab28fdb
treefbec2b7a3e196f1f3850f110c8764156eeee4170
parenta5f274de926cead40b577a6f2bb189d7a4561448
BUG/MINOR: mworker/cli: fix show proc pagination using reload counter

After commit 594408cd612b5 ("BUG/MINOR: mworker/cli: 'show proc' is limited
by buffer size"), related to ticket #3204, the "show proc" logic
has been fixed to be able to print more than 202 processes. However, this
fix can lead to the omission of entries in case they have the same
timestamp.

To fix this, we use the unique reload counter instead of the timestamp.
On partial flush, set ctx->next_reload = child->reloads.
On resume skip entries with child->reloads >= ctx->next_reload.
Finally, we clear ctx->next_reload at the end of a complete dump so
subsequent show proc starts from the top.

Could be backported in all stable branches.
src/mworker.c