Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 97673 invoked from network); 2 Dec 2008 21:59:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Dec 2008 21:59:37 -0000 Received: (qmail 78091 invoked by uid 500); 2 Dec 2008 21:59:48 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 78045 invoked by uid 500); 2 Dec 2008 21:59:48 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 78034 invoked by uid 99); 2 Dec 2008 21:59:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2008 13:59:48 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2008 21:58:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4EBD9234C29B for ; Tue, 2 Dec 2008 13:58:44 -0800 (PST) Message-ID: <939324254.1228255124321.JavaMail.jira@brutus> Date: Tue, 2 Dec 2008 13:58:44 -0800 (PST) From: "Adam Kocoloski (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Created: (COUCHDB-168) allow user-configurable directory for view indexes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org allow user-configurable directory for view indexes -------------------------------------------------- Key: COUCHDB-168 URL: https://issues.apache.org/jira/browse/COUCHDB-168 Project: CouchDB Issue Type: Wish Components: Database Core Reporter: Adam Kocoloski Hi, I'd like to be able to store the DBs and the view indexes in separate locations. This patch creates a new config variable called "view_index_dir" that allows for that. Best, Adam diff --git a/trunk/etc/couchdb/default.ini.tpl.in b/trunk/etc/couchdb/default.ini.tpl.in index f4eb49f..c9143cf 100644 --- a/trunk/etc/couchdb/default.ini.tpl.in +++ b/trunk/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/trunk/src/couchdb/couch_view.erl b/trunk/src/couchdb/couch_view.erl index 4ebbb13..086e39f 100644 --- a/trunk/src/couchdb/couch_view.erl +++ b/trunk/src/couchdb/couch_view.erl @@ -238,10 +238,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), -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.