nickva commented on code in PR #5716:
URL: https://github.com/apache/couchdb/pull/5716#discussion_r2467073881
##########
src/couch/src/couch_auto_purge_plugin.erl:
##########
@@ -47,7 +47,7 @@ checkpoint(_St) ->
db(St, DbName) ->
case ttl(St, DbName) of
TTL when is_integer(TTL) ->
- {ok, St#{ttl => TTL}};
+ {ok, St#{ttl => TTL, db_name => DbName, db_n => mem3:n(DbName)}};
Review Comment:
The idea was to save some resource on `n` lookup since it's a `mem3:shards`,
that's normally an ets lookup it also sends a cache hit message to the cache
gen_server. But it's probably not a big deal wither way
--
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]