]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: fix sort order of mworker_proc in 'show proc'
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 19 Mar 2026 15:59:23 +0000 (16:59 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 19 Mar 2026 16:51:28 +0000 (17:51 +0100)
commit4c61e9028cd575ca802ea03e9a3bdde857c81e7a
treefe7c488d5631856b6b7558082a7b35da3cf0ed95
parent932d77e2871b1258420805b3522c88e60123b7f5
BUG/MINOR: mworker: fix sort order of mworker_proc in 'show proc'

Since version 3.1, the display order of old workers in 'show proc' was
accidentally reversed. The oldest worker was shown first and the newest
last, which was not the intended behavior. This regression was introduced
during the master-worker rework.

Fix this by sorting the list during deserialization in
mworker_env_to_proc_list().

An alternative fix would have been to iterate the list in reverse order
in the show proc function, but that approach risks introducing
inconsistencies when backporting to older versions.

Must be backported to 3.1 and later.
src/mworker.c