You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "nickva (via GitHub)" <gi...@apache.org> on 2025/10/06 18:20:55 UTC

[PR] Fix props caching in mem3 [couchdb]

nickva opened a new pull request, #5690:
URL: https://github.com/apache/couchdb/pull/5690

   Previously, in https://github.com/apache/couchdb/pull/5672 we incorrectly stored some of the properties.
   
   The properties for the dbs db were stored correctly as `ets:insert(mem3_opts, {db, opts})` while for the other dbs they were stored as `ets:insert(mem3_opts, opts)`. All the requests would still work fine but the cache wouldn't be used as the values would be loaded from the db doc every time.
   
   Fix the bug and also adjust the name of `Opts` variable, we're not storing props but opts so rename it to reflect reality and avoid confusion.
   
   While at it, update the test suite to use the `?TDEF_FE` macro and get rid of all the `_test(begin ... end)` boilerplate.
   


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix props caching in mem3 [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva merged PR #5690:
URL: https://github.com/apache/couchdb/pull/5690


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org