aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia_monitor.erl
diff options
context:
space:
mode:
authorZandra Hird <[email protected]>2015-02-11 15:16:21 +0100
committerZandra Hird <[email protected]>2015-02-11 15:17:07 +0100
commit73996f6dabd8c90164da129ad5ac54293b3e4243 (patch)
treea52c37fbf0218c2fc7b28df62f0fca4dcdc13b3c /lib/mnesia/src/mnesia_monitor.erl
parentfd06c6e2262d651e0e62c2ed56ab639e746f988f (diff)
parentfefb2d78cb10606f83ad4010fee6a8be4d4191f2 (diff)
downloadotp-73996f6dabd8c90164da129ad5ac54293b3e4243.tar.gz
otp-73996f6dabd8c90164da129ad5ac54293b3e4243.tar.bz2
otp-73996f6dabd8c90164da129ad5ac54293b3e4243.zip
Merge branch 'richcarl/dcd-dumps'
* richcarl/dcd-dumps: Make Mnesia DCD dump behaviour available via API Make Mnesia DCD dump behaviour available via configuration OTP-12481
Diffstat (limited to 'lib/mnesia/src/mnesia_monitor.erl')
-rw-r--r--lib/mnesia/src/mnesia_monitor.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mnesia/src/mnesia_monitor.erl b/lib/mnesia/src/mnesia_monitor.erl
index 6fc1a394a6..a0e0e630ec 100644
--- a/lib/mnesia/src/mnesia_monitor.erl
+++ b/lib/mnesia/src/mnesia_monitor.erl
@@ -664,6 +664,7 @@ env() ->
backup_module,
debug,
dir,
+ dump_disc_copies_at_startup,
dump_log_load_regulation,
dump_log_time_threshold,
dump_log_update_in_place,
@@ -692,6 +693,8 @@ default_env(debug) ->
default_env(dir) ->
Name = lists:concat(["Mnesia.", node()]),
filename:absname(Name);
+default_env(dump_disc_copies_at_startup) ->
+ true;
default_env(dump_log_load_regulation) ->
false;
default_env(dump_log_time_threshold) ->
@@ -741,6 +744,7 @@ do_check_type(debug, trace) -> trace;
do_check_type(debug, true) -> debug;
do_check_type(debug, verbose) -> verbose;
do_check_type(dir, V) -> filename:absname(V);
+do_check_type(dump_disc_copies_at_startup, B) -> bool(B);
do_check_type(dump_log_load_regulation, B) -> bool(B);
do_check_type(dump_log_time_threshold, I) when is_integer(I), I > 0 -> I;
do_check_type(dump_log_update_in_place, B) -> bool(B);