]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: server: re-align state file fields number
authorWilliam Dauchy <wdauchy@gmail.com>
Mon, 8 Feb 2021 22:53:29 +0000 (23:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Feb 2021 15:25:42 +0000 (16:25 +0100)
Since commit 3169471964fdc49963e63f68c1fd88686821a0c4 ("MINOR: Add
server port field to server state file.") max_fields was not increased
on version number 1. So this patch aims to fix it. This should be
backported as far as v1.8, but the numbering should be adpated depending
on the version: simply increase the field by 1.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
include/haproxy/server-t.h

index f404d30106f39bf8144475dcabab6b0ce21c227d..b326305e866af38f5cd702cac0239806733fbb82 100644 (file)
@@ -129,7 +129,7 @@ enum srv_initaddr {
     "srv_check_port"
 
 #define SRV_STATE_FILE_MAX_FIELDS 22
-#define SRV_STATE_FILE_NB_FIELDS_VERSION_1 21
+#define SRV_STATE_FILE_NB_FIELDS_VERSION_1 22
 #define SRV_STATE_LINE_MAXLEN 512
 
 /* server flags -- 32 bits */