diff options
author | Linus Nordberg <linus@nordu.net> | 2017-01-30 16:43:47 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-01-30 16:43:47 +0100 |
commit | 1895b7740bf4540320f43b9a5283381169a817a4 (patch) | |
tree | 5c175811c58bd63a63545a923ac582e5c5c0ca38 /src/perm.erl | |
parent | e99900eb05cdb2f5fecb01c987396b49a0a31aa0 (diff) |
Start permdb with options from config.erlmerge
For starting primary merge (dist phase) in read-only mode.
Diffstat (limited to 'src/perm.erl')
-rw-r--r-- | src/perm.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/perm.erl b/src/perm.erl index 2e12fdf..e571d23 100644 --- a/src/perm.erl +++ b/src/perm.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2015, NORDUnet A/S. +%%% Copyright (c) 2015,2017, NORDUnet A/S. %%% See LICENSE for licensing information. -module(perm). @@ -8,7 +8,8 @@ start_link(Name, Filename) -> Module = application:get_env(plop, db_backend, fsdb), - Module:start_link(Name, Filename). + Options = application:get_env(plop, db_backend_opt, []), + Module:start_link(Name, Filename, Options). stop(Name) -> Module = application:get_env(plop, db_backend, fsdb), |