iilyak commented on a change in pull request #1593: Couch server improvements
URL: https://github.com/apache/couchdb/pull/1593#discussion_r215035807
 
 

 ##########
 File path: src/couch/src/couch_server.erl
 ##########
 @@ -101,9 +101,14 @@ open(DbName, Options0) ->
     end.
 
 update_lru(DbName, Options) ->
-    case lists:member(sys_db, Options) of
-        false -> gen_server:cast(couch_server, {update_lru, DbName});
-        true -> ok
+    case config:get_boolean("couchdb", "update_lru_on_read", false) of
 
 Review comment:
   This would add one extra `ets:lookup` here (which we probably can accept). A 
hacky alternative could be to extend `#entry` record so we can get the value of 
the parameter before sending message to couch_server.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to