nickva commented on code in PR #5695:
URL: https://github.com/apache/couchdb/pull/5695#discussion_r2417400579
##########
src/couch/src/couch_auto_purge_plugin.erl:
##########
@@ -156,6 +156,19 @@ ttl(St, DbName) ->
end,
if
DbTTL /= undefined -> DbTTL;
- DefaultTTL /= undefined -> list_to_integer(DefaultTTL);
+ DefaultTTL /= undefined -> parse_ttl(DefaultTTL);
true -> undefined
end.
+
+parse_deleted_document_ttl(AutoPurgeProps) ->
+ case couch_util:get_value(<<"deleted_document_ttl">>, AutoPurgeProps) of
Review Comment:
This might a binary in the props? In that case we should convert it to a
string or handle it in a parse_ttl clause.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]