You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/07 17:37:44 UTC

[22/50] couch commit: updated refs/heads/windsor-merge to 6e60cbe

Set update_lru_on_read in couch_server:init/1


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/9f16b07f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/9f16b07f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/9f16b07f

Branch: refs/heads/windsor-merge
Commit: 9f16b07f0ee85a2b7d670009d56619f0455c21b8
Parents: 7070a15
Author: Robert Newson <ro...@cloudant.com>
Authored: Sat Jul 20 00:19:39 2013 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Aug 5 17:00:53 2014 +0100

----------------------------------------------------------------------
 src/couch_server.erl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/9f16b07f/src/couch_server.erl
----------------------------------------------------------------------
diff --git a/src/couch_server.erl b/src/couch_server.erl
index 2199ce9..e741720 100644
--- a/src/couch_server.erl
+++ b/src/couch_server.erl
@@ -191,6 +191,8 @@ init([]) ->
     RootDir = config:get("couchdb", "database_dir", "."),
     MaxDbsOpen = list_to_integer(
             config:get("couchdb", "max_dbs_open", integer_to_list(?MAX_DBS_OPEN))),
+    UpdateLruOnRead =
+        config:get("couchdb", "update_lru_on_read", "true") =:= "true",
     ok = config:listen_for_changes(?MODULE, nil),
     ok = couch_file:init_delete_dir(RootDir),
     hash_admin_passwords(),
@@ -204,6 +206,7 @@ init([]) ->
     {ok, #server{root_dir=RootDir,
                 dbname_regexp=RegExp,
                 max_dbs_open=MaxDbsOpen,
+                update_lru_on_read=UpdateLruOnRead,
                 start_time=couch_util:rfc1123_date()}}.
 
 terminate(_Reason, _Srv) ->