From: William Dauchy Date: Mon, 8 Feb 2021 22:53:29 +0000 (+0100) Subject: BUG/MINOR: server: re-align state file fields number X-Git-Tag: v2.4-dev8~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38cd986c54975add4e14ef0f693dff494e36336d;p=thirdparty%2Fhaproxy.git BUG/MINOR: server: re-align state file fields number 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 --- diff --git a/include/haproxy/server-t.h b/include/haproxy/server-t.h index f404d30106..b326305e86 100644 --- a/include/haproxy/server-t.h +++ b/include/haproxy/server-t.h @@ -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 */