This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 7812f5329f30d6f2b06e3d19eadde0a5c32a7b0e Author: Nick Vatamaniuc <[email protected]> AuthorDate: Tue Feb 17 18:24:31 2026 -0500 Fix config:get_integer_or_infinity/3 Previously we didn't handle the case when the "infinity" value was explicitly set in the config file. We only handled the case when it was the default value. --- src/config/src/config.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config/src/config.erl b/src/config/src/config.erl index e00746208..eb7316672 100644 --- a/src/config/src/config.erl +++ b/src/config/src/config.erl @@ -87,6 +87,10 @@ get_integer(Section, Key, Default) when is_integer(Default) -> get_integer_or_infinity(Section, Key, Default) when is_integer(Default); Default == infinity -> case get_value(Section, Key, Default) of infinity -> + % We got the default infinity + infinity; + "infinity" -> + % Value was actually set to "infinity" infinity; _Value -> get_integer_int(Section, Key, Default)
