aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/test
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-02-12 14:50:49 +0100
committerDan Gudmundsson <[email protected]>2014-02-20 12:38:51 +0100
commit70373f8cb0a3fe404c1e51e0ade0c98b83aa0014 (patch)
tree32fc44566f344b8d1b3196ee74902d6afb584a5c /lib/mnesia/test
parentfdcdaca338849d7f63d4300e489318f6ee275d82 (diff)
downloadotp-70373f8cb0a3fe404c1e51e0ade0c98b83aa0014.tar.gz
otp-70373f8cb0a3fe404c1e51e0ade0c98b83aa0014.tar.bz2
otp-70373f8cb0a3fe404c1e51e0ade0c98b83aa0014.zip
mnesia: Add explicit sync_log command
For performance reasons the file data is not synced to disk in mnesia, data loss can happen between each dump. mnesia:dump_log() can be used explicitly to ensure data is written to disk. But that can take a long time, so mnesia:sync_log() which just sync the log have been added.
Diffstat (limited to 'lib/mnesia/test')
-rw-r--r--lib/mnesia/test/mnesia_nice_coverage_test.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mnesia/test/mnesia_nice_coverage_test.erl b/lib/mnesia/test/mnesia_nice_coverage_test.erl
index 78eab67b11..4b28ac634f 100644
--- a/lib/mnesia/test/mnesia_nice_coverage_test.erl
+++ b/lib/mnesia/test/mnesia_nice_coverage_test.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2010. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -189,6 +189,7 @@ adm(Attrs, Node1, Node2) ->
?match({atomic, ok}, mnesia:move_table_copy(nice_tab, Node2, Node1)),
?match(yes, mnesia:force_load_table(nice_counter_tab)),
+ ?match(ok, mnesia:sync_log()),
?match(dumped, mnesia:dump_log()),
ok.