diff options
author | Dan Gudmundsson <[email protected]> | 2011-06-09 10:57:29 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2011-09-15 15:34:18 +0200 |
commit | 2566dbcc68213fdd0aba0323dc43c7fa70a9bba0 (patch) | |
tree | a19c92686b808abccedd054f5735ef0ba4158a13 /lib | |
parent | 5cc51846ca87f43ec8a58da5bea0ed63dbbe0757 (diff) | |
download | otp-2566dbcc68213fdd0aba0323dc43c7fa70a9bba0.tar.gz otp-2566dbcc68213fdd0aba0323dc43c7fa70a9bba0.tar.bz2 otp-2566dbcc68213fdd0aba0323dc43c7fa70a9bba0.zip |
[mnesia] Fixed bug in aborted schema transactions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mnesia/src/mnesia_dumper.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_dumper.erl b/lib/mnesia/src/mnesia_dumper.erl index 92fd9dfade..daa9e6aff2 100644 --- a/lib/mnesia/src/mnesia_dumper.erl +++ b/lib/mnesia/src/mnesia_dumper.erl @@ -214,7 +214,12 @@ insert_rec(Rec, InPlace, InitBy, LogV) when is_record(Rec, commit) -> {Tid, committed} -> do_insert_rec(Tid, Rec, InPlace, InitBy, LogV); {Tid, aborted} -> - mnesia_schema:undo_prepare_commit(Tid, Rec) + case InitBy of + startup -> + mnesia_schema:undo_prepare_commit(Tid, Rec); + _ -> + ok + end end; insert_rec(H, _InPlace, _InitBy, _LogV) when is_record(H, log_header) -> CurrentVersion = mnesia_log:version(), |