]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: Don't introduce a new server-state file version
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Feb 2021 11:10:36 +0000 (12:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Feb 2021 17:03:59 +0000 (18:03 +0100)
commitea2cdf55e38f0fd80de9d39ce2c265d95507e256
treea58861cc99628d821e7a73766b5e573cba04e791
parent868a5757e584431fafe713546c8ef8e799865476
MEDIUM: server: Don't introduce a new server-state file version

This revert the commit 63e6cba12 ("MEDIUM: server: add server-states version
2"), but keeping all recent features added to the server-sate file. Instead
of adding a 2nd version for the server-state file format to handle the 5 new
fields added during the 2.4 development, these fields are considered as
optionnal during the parsing. So it is possible to load a server-state file
from HAProxy 2.3. However, from 2.4, these new fields are always dumped in
the server-state file. But it should not be a problem to load it on the 2.3.

This patch seems a bit huge but the diff ignoring the space is much smaller.

The version 2 of the server-state file format is reserved for a real
refactoring to address all issues of the current format.
include/haproxy/server-t.h
src/server.c