From 072e5e71280c867a419db7c9ae061f96e16f04f6 Mon Sep 17 00:00:00 2001 From: Nick Vatamaniuc Date: Thu, 21 May 2026 17:37:27 -0400 Subject: [PATCH] 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 a4ee86e4bf..de9aa32d68 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 ->