diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-02-12 08:29:34 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-02-12 08:29:34 +0000 |
commit | 645cfeaa0341fda45d64c726b0760c7190b26c06 (patch) | |
tree | 8a348ca05d05feb245c55132c168fce377986564 | |
parent | fd31ca2f9ee86cafa2b55da5f969616a1e06926d (diff) |
allow user-configurable directory for view indexes.
closes COUCHDB-168. thanks Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@743653 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | etc/couchdb/default.ini.tpl.in | 1 | ||||
-rw-r--r-- | src/couchdb/couch_view.erl | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in index 28ab36f2..7c6f417a 100644 --- a/etc/couchdb/default.ini.tpl.in +++ b/etc/couchdb/default.ini.tpl.in @@ -4,6 +4,7 @@ [couchdb] database_dir = %localstatelibdir% +view_index_dir = %localstatelibdir% util_driver_dir = %couchprivlibdir% max_document_size = 4294967296 ; 4 GB view_timeout = 5000 ; 5 seconds diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl index e790efd3..5a7926b2 100644 --- a/src/couchdb/couch_view.erl +++ b/src/couchdb/couch_view.erl @@ -194,10 +194,10 @@ fold(#view{btree=Btree}, StartKey, Dir, Fun, Acc) -> init([]) -> % read configuration settings and register for configuration changes - RootDir = couch_config:get("couchdb", "database_dir"), + RootDir = couch_config:get("couchdb", "view_index_dir"), Self = self(), ok = couch_config:register( - fun("couchdb", "database_dir")-> + fun("couchdb", "view_index_dir")-> exit(Self, config_change) end), |