aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-08-19 15:48:47 +0200
committerFredrik Gustafsson <[email protected]>2013-08-19 15:48:47 +0200
commit0f01c8195a9810fe5ee881440c949ccab15c5db7 (patch)
tree57ff83a06caf7491928fc87976e94e583bd46b3c /lib/mnesia
parent2938ab325fd04d342036d77e214246276f00ffe1 (diff)
parentf07a92206bfbef5188b9d567559e1b13014dd82c (diff)
downloadotp-0f01c8195a9810fe5ee881440c949ccab15c5db7.tar.gz
otp-0f01c8195a9810fe5ee881440c949ccab15c5db7.tar.bz2
otp-0f01c8195a9810fe5ee881440c949ccab15c5db7.zip
Merge branch 'fredrik/mnesia/fix_removing_bup/OTP-11241' into maint
* fredrik/mnesia/fix_removing_bup/OTP-11241: mnesia: fix removal of bup file if not mnesia is started
Diffstat (limited to 'lib/mnesia')
-rw-r--r--lib/mnesia/src/mnesia_bup.erl6
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),