aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-07-20 15:38:03 +0200
committerSverker Eriksson <[email protected]>2018-07-20 15:38:03 +0200
commit78f5b89a9aab785841157457a0528f8781353862 (patch)
treea907fefc72b48a52de02ce3a892e453796c5aa67 /lib
parent70b445f29153ef6f043676692c3d67be5141bab6 (diff)
parent0874ef1548a3e556c303415cf2e0dc1169e056a4 (diff)
downloadotp-78f5b89a9aab785841157457a0528f8781353862.tar.gz
otp-78f5b89a9aab785841157457a0528f8781353862.tar.bz2
otp-78f5b89a9aab785841157457a0528f8781353862.zip
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/mnesia/src/mnesia.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia.erl b/lib/mnesia/src/mnesia.erl
index e298904e2a..62202401ed 100644
--- a/lib/mnesia/src/mnesia.erl
+++ b/lib/mnesia/src/mnesia.erl
@@ -168,6 +168,9 @@
-type snmp_struct() :: [{atom(), snmp_type() | tuple_of(snmp_type())}].
-type snmp_type() :: 'fix_string' | 'string' | 'integer'.
-type tuple_of(_T) :: tuple().
+-type config_key() :: extra_db_nodes | dc_dump_limit.
+-type config_value() :: [node()] | number().
+-type config_result() :: {ok, config_value()} | {error, term()}.
-define(DEFAULT_ACCESS, ?MODULE).
@@ -278,7 +281,8 @@ stop() ->
Other -> Other
end.
--spec change_config(Config::atom(), Value::_) -> ok | {error, term()}.
+-spec change_config(Config::config_key(), Value::config_value()) ->
+ config_result().
change_config(extra_db_nodes, Ns) when is_list(Ns) ->
mnesia_controller:connect_nodes(Ns);
change_config(dc_dump_limit, N) when is_number(N), N > 0 ->