This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch change-hibernation-strategy
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 8e845e674cf896a7449a228c13d98a44456be5dc
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)

Reply via email to