summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-02-12 08:29:34 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-02-12 08:29:34 +0000
commit645cfeaa0341fda45d64c726b0760c7190b26c06 (patch)
tree8a348ca05d05feb245c55132c168fce377986564 /src/couchdb
parentfd31ca2f9ee86cafa2b55da5f969616a1e06926d (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
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_view.erl4
1 files changed, 2 insertions, 2 deletions
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),