aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-09-21 12:01:52 +0200
committerDan Gudmundsson <[email protected]>2011-09-21 12:01:52 +0200
commit7b6012a75f26219e5a8c803a0509d97d1b00c73a (patch)
treeef2e44abac489a7730268b0329316b0f03fdb2de /lib/mnesia
parent2629a629a2f5b16067d9ca6f99be9711c52bf9ca (diff)
parenta6bd22387b3647a5e2669314c800454ccde9b0b3 (diff)
downloadotp-7b6012a75f26219e5a8c803a0509d97d1b00c73a.tar.gz
otp-7b6012a75f26219e5a8c803a0509d97d1b00c73a.tar.bz2
otp-7b6012a75f26219e5a8c803a0509d97d1b00c73a.zip
Merge branch 'dgud/mnesia/leaking-log/OTP-9551' into dev
* dgud/mnesia/leaking-log/OTP-9551: [mnesia] Use api to log decisions.
Diffstat (limited to 'lib/mnesia')
-rw-r--r--lib/mnesia/src/mnesia_recover.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mnesia/src/mnesia_recover.erl b/lib/mnesia/src/mnesia_recover.erl
index b3eed1de6e..4750291a10 100644
--- a/lib/mnesia/src/mnesia_recover.erl
+++ b/lib/mnesia/src/mnesia_recover.erl
@@ -227,11 +227,13 @@ do_log_decision(D, DoTell, NodeD) ->
note_outcome(D2),
case mnesia_monitor:use_dir() of
true ->
- mnesia_log:append(latest_log, D2),
if
DoTell == true, Outcome /= unclear ->
tell_im_certain(NodeD#decision.disc_nodes--[node()],D2),
- tell_im_certain(NodeD#decision.ram_nodes--[node()], D2);
+ tell_im_certain(NodeD#decision.ram_nodes--[node()], D2),
+ mnesia_log:log(D2);
+ Outcome /= unclear ->
+ mnesia_log:log(D2);
true ->
ignore
end;