diff options
author | Dan Gudmundsson <[email protected]> | 2011-09-21 12:01:52 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2011-09-21 12:01:52 +0200 |
commit | 7b6012a75f26219e5a8c803a0509d97d1b00c73a (patch) | |
tree | ef2e44abac489a7730268b0329316b0f03fdb2de | |
parent | 2629a629a2f5b16067d9ca6f99be9711c52bf9ca (diff) | |
parent | a6bd22387b3647a5e2669314c800454ccde9b0b3 (diff) | |
download | otp-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.
-rw-r--r-- | lib/mnesia/src/mnesia_recover.erl | 6 |
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; |