diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:36:28 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-06 14:39:42 +0100 |
commit | 1040c3c48099e5ee6b65cb2af5e8bf446764fef3 (patch) | |
tree | 05200fe34835cc2ff05b5c4bc9bef4432664d37f /lib/mnesia/src/mnesia_bup.erl | |
parent | 798f2151429ef7ea05d858e5ba9efc6d5cc3e10a (diff) | |
download | otp-1040c3c48099e5ee6b65cb2af5e8bf446764fef3.tar.gz otp-1040c3c48099e5ee6b65cb2af5e8bf446764fef3.tar.bz2 otp-1040c3c48099e5ee6b65cb2af5e8bf446764fef3.zip |
mnesia: Do not call erlang:get_stacktrace()
The remaining call (in module mnesia_lib) is taken care
of in the following commit.
Diffstat (limited to 'lib/mnesia/src/mnesia_bup.erl')
-rw-r--r-- | lib/mnesia/src/mnesia_bup.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mnesia/src/mnesia_bup.erl b/lib/mnesia/src/mnesia_bup.erl index 34f16f178b..9dda340333 100644 --- a/lib/mnesia/src/mnesia_bup.erl +++ b/lib/mnesia/src/mnesia_bup.erl @@ -90,9 +90,9 @@ iterate(Mod, Fun, Opaque, Acc) -> catch throw:Err -> close_read(R2), Err; - _:Reason -> + _:Reason:Stacktrace -> close_read(R2), - {error, {Reason, erlang:get_stacktrace()}} + {error, {Reason, Stacktrace}} end catch throw:{error,_} = Err -> Err @@ -198,9 +198,9 @@ do_read_schema_section(R) -> try {R3, RawSchema} = safe_apply(R2, read, [R2#restore.bup_data]), do_read_schema_section(R3, verify_header(RawSchema), []) - catch T:E -> + catch T:E:S -> close_read(R2), - erlang:raise(T,E,erlang:get_stacktrace()) + erlang:raise(T,E,S) end. do_read_schema_section(R, {ok, B, C, []}, Acc) -> |