]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ring: size warning incorrectly reported as fatal error
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 22 Jun 2023 14:57:29 +0000 (16:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 10 Jul 2023 16:28:08 +0000 (18:28 +0200)
commit30ff33bd9b7527fe7434b349ada80e0e3cbab5a0
tree2c8fede619c8a65a66fd902135ce7ee152efcdb2
parenta5754219e7ec7c0d2d46a5b502791a13457bd2f4
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
src/sink.c