couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r743653 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_view.erl
Date Thu, 12 Feb 2009 08:29:34 GMT
Author: jchris
Date: Thu Feb 12 08:29:34 2009
New Revision: 743653

URL: http://svn.apache.org/viewvc?rev=743653&view=rev
Log:
allow user-configurable directory for view indexes.
closes COUCHDB-168. thanks Adam Kocoloski

Modified:
    couchdb/trunk/etc/couchdb/default.ini.tpl.in
    couchdb/trunk/src/couchdb/couch_view.erl

Modified: couchdb/trunk/etc/couchdb/default.ini.tpl.in
URL: http://svn.apache.org/viewvc/couchdb/trunk/etc/couchdb/default.ini.tpl.in?rev=743653&r1=743652&r2=743653&view=diff
==============================================================================
--- couchdb/trunk/etc/couchdb/default.ini.tpl.in (original)
+++ couchdb/trunk/etc/couchdb/default.ini.tpl.in Thu Feb 12 08:29:34 2009
@@ -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

Modified: couchdb/trunk/src/couchdb/couch_view.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_view.erl?rev=743653&r1=743652&r2=743653&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_view.erl (original)
+++ couchdb/trunk/src/couchdb/couch_view.erl Thu Feb 12 08:29:34 2009
@@ -194,10 +194,10 @@
 
 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),
         



Mime
View raw message