couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [31/36] couch commit: updated refs/heads/windsor-merge-211 to b7adb86
Date Tue, 05 Aug 2014 21:18:14 GMT
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-211
Commit: 9f16b07f0ee85a2b7d670009d56619f0455c21b8
Parents: 7070a15
Author: Robert Newson <robert.newson@cloudant.com>
Authored: Sat Jul 20 00:19:39 2013 +0100
Committer: Robert Newson <rnewson@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) ->


Mime
View raw message