You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2013/02/06 21:46:45 UTC
[2/2] git commit: COUCHDB-1667: Revert index_dir to view_index_dir
config option.
Updated Branches:
refs/heads/1.3.x 8038d84fe -> 824abd362
refs/heads/master 3fab6bb55 -> b267a2901
COUCHDB-1667: Revert index_dir to view_index_dir config option.
Patch by Alexander Shorin.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/824abd36
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/824abd36
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/824abd36
Branch: refs/heads/1.3.x
Commit: 824abd362aaef0f9893876d9adc23047c6e4d7eb
Parents: 8038d84
Author: Jan Lehnardt <ja...@apache.org>
Authored: Wed Feb 6 21:45:48 2013 +0100
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Wed Feb 6 21:46:38 2013 +0100
----------------------------------------------------------------------
etc/couchdb/default.ini.tpl.in | 2 +-
src/couch_index/src/couch_index_server.erl | 7 -------
src/couch_index/src/couch_index_util.erl | 5 +----
test/etap/072-cleanup.t | 2 +-
4 files changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/824abd36/etc/couchdb/default.ini.tpl.in
----------------------------------------------------------------------
diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in
index ca26eb0..736d9cd 100644
--- a/etc/couchdb/default.ini.tpl.in
+++ b/etc/couchdb/default.ini.tpl.in
@@ -7,7 +7,7 @@ version = %version%
[couchdb]
database_dir = %localstatelibdir%
-index_dir = %localstatelibdir%
+view_index_dir = %localstatelibdir%
util_driver_dir = %couchprivlibdir%
max_document_size = 4294967296 ; 4 GB
os_process_timeout = 5000 ; 5 seconds. for view and external servers.
http://git-wip-us.apache.org/repos/asf/couchdb/blob/824abd36/src/couch_index/src/couch_index_server.erl
----------------------------------------------------------------------
diff --git a/src/couch_index/src/couch_index_server.erl b/src/couch_index/src/couch_index_server.erl
index bc1fce7..8e2baf6 100644
--- a/src/couch_index/src/couch_index_server.erl
+++ b/src/couch_index/src/couch_index_server.erl
@@ -75,13 +75,6 @@ init([]) ->
ets:new(?BY_DB, [protected, bag, named_table]),
couch_db_update_notifier:start_link(fun ?MODULE:update_notify/1),
RootDir = couch_index_util:root_dir(),
- % Deprecation warning if it wasn't index_dir
- case couch_config:get("couchdb", "index_dir") of
- undefined ->
- Msg = "Deprecation warning: 'view_index_dir' is now 'index_dir'",
- ?LOG_ERROR(Msg, []);
- _ -> ok
- end,
couch_file:init_delete_dir(RootDir),
{ok, #st{root_dir=RootDir}}.
http://git-wip-us.apache.org/repos/asf/couchdb/blob/824abd36/src/couch_index/src/couch_index_util.erl
----------------------------------------------------------------------
diff --git a/src/couch_index/src/couch_index_util.erl b/src/couch_index/src/couch_index_util.erl
index 28ec8d2..0b833d3 100644
--- a/src/couch_index/src/couch_index_util.erl
+++ b/src/couch_index/src/couch_index_util.erl
@@ -19,10 +19,7 @@
root_dir() ->
- case couch_config:get("couchdb", "index_dir") of
- undefined -> couch_config:get("couchdb", "view_index_dir");
- Value -> Value
- end.
+ couch_config:get("couchdb", "view_index_dir").
index_dir(Module, DbName) when is_binary(DbName) ->
http://git-wip-us.apache.org/repos/asf/couchdb/blob/824abd36/test/etap/072-cleanup.t
----------------------------------------------------------------------
diff --git a/test/etap/072-cleanup.t b/test/etap/072-cleanup.t
index 6721090..9cbcdfa 100755
--- a/test/etap/072-cleanup.t
+++ b/test/etap/072-cleanup.t
@@ -121,6 +121,6 @@ view_cleanup() ->
count_index_files() ->
% call server to fetch the index files
- RootDir = couch_config:get("couchdb", "index_dir"),
+ RootDir = couch_config:get("couchdb", "view_index_dir"),
length(filelib:wildcard(RootDir ++ "/." ++
binary_to_list(?TEST_DB) ++ "_design"++"/mrview/*")).