You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2026/05/21 21:42:45 UTC

(couchdb) branch handle-autopurge-infinity-clause created (now 072e5e712)

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

nickva pushed a change to branch handle-autopurge-infinity-clause
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at 072e5e712 Fix function clause on auto_purge ttl = infinity

This branch includes the following new commits:

     new 072e5e712 Fix function clause on auto_purge ttl = infinity

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(couchdb) 01/01: Fix function clause on auto_purge ttl = infinity

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nickva pushed a commit to branch handle-autopurge-infinity-clause
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 072e5e71280c867a419db7c9ae061f96e16f04f6
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Thu May 21 17:37:27 2026 -0400

    Fix function clause on auto_purge ttl = infinity
    
    Fix function_clause when per-db values was not set and the default in config
    was set to "infinity".
    
    The clause is already covered by eunit tests it's just that now it logs should
    show an function_clause error.
---
 src/couch/src/couch_auto_purge_plugin.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/couch/src/couch_auto_purge_plugin.erl b/src/couch/src/couch_auto_purge_plugin.erl
index a4ee86e4b..de9aa32d6 100644
--- a/src/couch/src/couch_auto_purge_plugin.erl
+++ b/src/couch/src/couch_auto_purge_plugin.erl
@@ -70,6 +70,8 @@ db(St, DbName) ->
         TTL when is_integer(TTL) ->
             {ok, St#{ttl => TTL}};
         undefined ->
+            {skip, St};
+        infinity ->
             {skip, St}
     catch
         error:database_does_not_exist ->