From 645cfeaa0341fda45d64c726b0760c7190b26c06 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Thu, 12 Feb 2009 08:29:34 +0000 Subject: 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 --- src/couchdb/couch_view.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/couchdb') 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), -- cgit v1.2.3