BUG/MINOR: ring: size warning incorrectly reported as fatal error

When a ring section defines its size using the "size" directive with a
smaller size than the default one or smaller than the previous one,
a warning is generated to inform the user that the new size will be
ignored.

However the err_code is returned as FATAL, so this cause haproxy to
incorrectly abort the init sequence.

Changing the err_code to ERR_WARN so that this warning doesn't refrain
from successfully starting the process.

This should be backported as far as 2.4

(cherry picked from commit 30ff33bd9b7527fe7434b349ada80e0e3cbab5a0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit cad9ce548f06c003fa85a8f001fa4febf6656d5d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e1f48318c1613821ef908339ebac642a81c6ceaa)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 37db78982de9d25e72e8b698a09acef79b4483d9)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed