This is an automated email from the ASF dual-hosted git repository.
nickva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new a006a2ca1 Fix function clause on auto_purge ttl = infinity
a006a2ca1 is described below
commit a006a2ca161e4a82e6632247572f981c0de33037
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 ->