]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server-state: Ignore empty files
authorMarcos de Oliveira <markinholiveira@gmail.com>
Thu, 20 Jul 2023 20:21:10 +0000 (17:21 -0300)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Jul 2023 13:08:27 +0000 (15:08 +0200)
commit122a903b94d5db52923ebd2f49a960defddfd40a
treeb4f7a62a096122273b7e4570b9e590961900764c
parentbd6ef51fa5357e364fd6e298ecc4e3d931558478
BUG/MINOR: server-state: Ignore empty files

Users might want to pre-create an empty file for later dumping
server-states. This commit allows for that by emiting a notice in case
file is empty and a warning if file is not empty, but version is unknown

Fix partially: #2190

CF: Technically speaking, this patch can be backported to all stable
    versions. But it is better to do so to 2.8 only for now.
src/server_state.c