diff options
author | Dan Gudmundsson <[email protected]> | 2015-05-12 09:44:56 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2015-05-12 09:44:56 +0200 |
commit | 86e0cc22ee063148595fcfc862a9a41564eafc76 (patch) | |
tree | d8a7d8d8b33173fda44b733f1c5135ace02cdd7c /lib/mnesia/src/mnesia.erl | |
parent | cc5f313a886521dd72a7dc38ced6f45762705541 (diff) | |
parent | 3339aabf37dc65fd3fa66482764fc9c533d65933 (diff) | |
download | otp-86e0cc22ee063148595fcfc862a9a41564eafc76.tar.gz otp-86e0cc22ee063148595fcfc862a9a41564eafc76.tar.bz2 otp-86e0cc22ee063148595fcfc862a9a41564eafc76.zip |
Merge branch 'dgud/mnesia/dirty_error_reason/OTP-12714'
* dgud/mnesia/dirty_error_reason/OTP-12714:
mnesia: dirty error messages did not behave as documented
Diffstat (limited to 'lib/mnesia/src/mnesia.erl')
-rw-r--r-- | lib/mnesia/src/mnesia.erl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/mnesia/src/mnesia.erl b/lib/mnesia/src/mnesia.erl index f501a4485b..b9c2fd915c 100644 --- a/lib/mnesia/src/mnesia.erl +++ b/lib/mnesia/src/mnesia.erl @@ -306,6 +306,8 @@ ms() -> -spec abort(_) -> no_return(). +abort(Reason = {aborted, _}) -> + exit(Reason); abort(Reason) -> exit({aborted, Reason}). @@ -1626,13 +1628,7 @@ dirty_read(Oid) -> dirty_read(Tab, Key) when is_atom(Tab), Tab /= schema -> -%% case catch ?ets_lookup(Tab, Key) of -%% {'EXIT', _} -> - %% Bad luck, we have to perform a real lookup - dirty_rpc(Tab, mnesia_lib, db_get, [Tab, Key]); -%% Val -> -%% Val -%% end; + dirty_rpc(Tab, mnesia_lib, db_get, [Tab, Key]); dirty_read(Tab, _Key) -> abort({bad_type, Tab}). |