BUG/MINOR: mworker: don't use oldpids[] anymore for reload
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 21 Apr 2021 14:55:34 +0000 (16:55 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 21 Apr 2021 14:55:34 +0000 (16:55 +0200)
commitaba7f8b3132de3b29efe634cad8fb574f259549b
treedc4707869ccabc5998815c0d946c82b2ae0dc347
parentea6bf83d621ceeaf3f7e7de59b45fa00940b784d
BUG/MINOR: mworker: don't use oldpids[] anymore for reload

Since commit 3f12887 ("MINOR: mworker: don't use children variable
anymore"), the oldpids array is not used anymore to generate the new -sf
parameters. So we don't need to set nb_oldpids to 0 during the first
start of the master process.

This patch fixes a bug when 2 masters process tries to synchronize their
peers, there is a small chances that it won't work because nb_oldpids
equals 0.

Should be backported as far as 2.0.
src/haproxy.c