diff options
author | Fredrik Gustafsson <[email protected]> | 2013-08-15 15:08:44 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-08-16 10:59:47 +0200 |
commit | f07a92206bfbef5188b9d567559e1b13014dd82c (patch) | |
tree | 692040ccc0f28e976c2f9de65a28c27dd54339bb | |
parent | 410bd502e75b22cfa355ffc11eb160360c20bd6f (diff) | |
download | otp-f07a92206bfbef5188b9d567559e1b13014dd82c.tar.gz otp-f07a92206bfbef5188b9d567559e1b13014dd82c.tar.bz2 otp-f07a92206bfbef5188b9d567559e1b13014dd82c.zip |
mnesia: fix removal of bup file if not mnesia is started
-rw-r--r-- | lib/mnesia/src/mnesia_bup.erl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/mnesia/src/mnesia_bup.erl b/lib/mnesia/src/mnesia_bup.erl index fd87be1759..3b084e7371 100644 --- a/lib/mnesia/src/mnesia_bup.erl +++ b/lib/mnesia/src/mnesia_bup.erl @@ -1052,11 +1052,7 @@ local_uninstall_fallback(Master, FA) -> Tmp = FA2#fallback_args.fallback_tmp, Bup = FA2#fallback_args.fallback_bup, file:delete(Tmp), - Res = - case fallback_exists(Bup) of - true -> file:delete(Bup); - false -> ok - end, + Res = file:delete(Bup), ?eval_debug_fun({?MODULE, uninstall_fallback2, post_delete}, []), Master ! {self(), Res}, unlink(Master), |