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 <[email protected]> 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 ->
