aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUwe Dauernheim <[email protected]>2011-09-16 13:17:35 +0300
committerRicardo Catalinas JimĂ©nez <[email protected]>2011-12-31 20:16:58 +0100
commita85fe55b81f76ed63ebc6d9c6b2b7191fdec810e (patch)
treeb651686e6ea4eb23d03e950ed28b8fc575484378 /lib
parent01f35546b9dbaac053a80418b38105a1acc35540 (diff)
downloadotp-a85fe55b81f76ed63ebc6d9c6b2b7191fdec810e.tar.gz
otp-a85fe55b81f76ed63ebc6d9c6b2b7191fdec810e.tar.bz2
otp-a85fe55b81f76ed63ebc6d9c6b2b7191fdec810e.zip
Fixes value returned by mnesia_loader:do_get_disc_copy2/4
Returns the same value for `mnesia_loader:disc_load_table/2' as `mnesia_loader:net_load_table/4' if a table copy can not be found. This patch was stuck as a pull request in GitHub (authored by Uwe Dauernheim): https://github.com/erlang/otp/pull/16
Diffstat (limited to 'lib')
-rw-r--r--lib/mnesia/src/mnesia_loader.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_loader.erl b/lib/mnesia/src/mnesia_loader.erl
index e443b54016..4ba400fbbf 100644
--- a/lib/mnesia/src/mnesia_loader.erl
+++ b/lib/mnesia/src/mnesia_loader.erl
@@ -57,7 +57,7 @@ disc_load_table(Tab, Reason) ->
do_get_disc_copy2(Tab, _Reason, Storage, _Type) when Storage == unknown ->
verbose("Local table copy of ~p has recently been deleted, ignored.~n",
[Tab]),
- {loaded, ok}; %% ?
+ {not_loaded, storage_unknown};
do_get_disc_copy2(Tab, Reason, Storage, Type) when Storage == disc_copies ->
%% NOW we create the actual table
Repair = mnesia_monitor:get_env(auto_repair),