]> git.kaiwu.me - haproxy.git/commit
MEDIUM: mworker: exiting when couldn't find the master mworker_proc element
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 10 Mar 2026 14:45:23 +0000 (15:45 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 10 Mar 2026 14:57:21 +0000 (15:57 +0100)
commit6d14fd0b29cf46de9cb0822ade1e474ea606ce08
tree123cb7e8a19b62ce8e8cd74f1683832b8d5d7c1a
parent00563233b7d4ac3425c6271ec7c7173c4ac7745f
MEDIUM: mworker: exiting when couldn't find the master mworker_proc element

When a master process is reloading, the HAPROXY_PROCESSES variable is
deserialized. In older version of the master-worker (< 1.9), no master
element was existing in this variable.

This is not suppose to happen anymore, and could have provoked problems
in the master anyway.

This patch changes the behavior by exiting the master with an alert if
mp master element was found in this variable.
src/mworker.c