You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2025/01/28 10:05:08 UTC
(couchdb) 04/13: set ra data dir
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch ra
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 169dd4635ef5c3d177a6bb67d572fc37db8cd25e
Author: Robert Newson <rn...@apache.org>
AuthorDate: Fri Sep 6 15:00:30 2024 +0100
set ra data dir
---
rel/overlay/etc/default.ini | 1 +
src/couch/src/couch_app.erl | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 8053f1bdd..eb5524f04 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -6,6 +6,7 @@ name = {{package_author_name}}
uuid = {{uuid}}
database_dir = {{data_dir}}
view_index_dir = {{view_index_dir}}
+ra_data_dir = {{data_dir}}/ra
;util_driver_dir =
;plugin_dir =
;os_process_timeout = 5000 ; 5 seconds. for view servers.
diff --git a/src/couch/src/couch_app.erl b/src/couch/src/couch_app.erl
index 8cd8c8482..2ee9ef716 100644
--- a/src/couch/src/couch_app.erl
+++ b/src/couch/src/couch_app.erl
@@ -21,6 +21,11 @@
]).
start(_Type, _) ->
+ RaEnv = [
+ {data_dir, config:get("couchdb", "ra_data_dir")}
+ ],
+ ra:start(RaEnv),
+
case couch_sup:start_link() of
{ok, _} = Resp ->
{Time, _} = statistics(wall_clock),