aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia_loader.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:36:28 +0100
committerHans Bolinder <[email protected]>2018-02-06 14:39:42 +0100
commit1040c3c48099e5ee6b65cb2af5e8bf446764fef3 (patch)
tree05200fe34835cc2ff05b5c4bc9bef4432664d37f /lib/mnesia/src/mnesia_loader.erl
parent798f2151429ef7ea05d858e5ba9efc6d5cc3e10a (diff)
downloadotp-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_loader.erl')
-rw-r--r--lib/mnesia/src/mnesia_loader.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mnesia/src/mnesia_loader.erl b/lib/mnesia/src/mnesia_loader.erl
index 4c6336cb73..11991f2465 100644
--- a/lib/mnesia/src/mnesia_loader.erl
+++ b/lib/mnesia/src/mnesia_loader.erl
@@ -535,7 +535,7 @@ init_table(Tab, _, Fun, _DetsInfo,_) ->
try
true = ets:init_table(Tab, Fun),
ok
- catch _:Else -> {Else, erlang:get_stacktrace()}
+ catch _:Else:Stacktrace -> {Else, Stacktrace}
end.
@@ -777,9 +777,9 @@ do_send_table(Pid, Tab, Storage, RemoteS) ->
throw:receiver_died ->
cleanup_tab_copier(Pid, Storage, Tab),
ok;
- error:Reason -> %% Prepare failed
+ error:Reason:Stacktrace -> %% Prepare failed
cleanup_tab_copier(Pid, Storage, Tab),
- {error, {tab_copier, Tab, {Reason, erlang:get_stacktrace()}}}
+ {error, {tab_copier, Tab, {Reason, Stacktrace}}}
after
unlink(whereis(mnesia_tm))
end.