[erlang-bugs] mnesia 4.3.5 ignores module argument to mnesia:restore/2, always uses default backup module
Paul Mineiro
paul-trapexit@REDACTED
Mon Nov 19 20:26:58 CET 2007
Patch attached.
-- p
Optimism is an essential ingredient of innovation. How else can the
individual favor change over security?
-- Robert Noyce
-------------- next part --------------
--- mnesia-4.3.5/src/mnesia_schema.erl.orig 2007-03-27 06:37:32.000000000 -0700
+++ mnesia-4.3.5/src/mnesia_schema.erl 2007-11-19 11:21:04.000000000 -0800
@@ -2462,7 +2462,7 @@
InitR = #r{opaque = Opaque, module = Module},
case catch lists:foldl(fun check_restore_arg/2, InitR, Args) of
R when record(R, r) ->
- case mnesia_bup:read_schema(Module, Opaque) of
+ case mnesia_bup:read_schema(R#r.module, Opaque) of
{error, Reason} ->
{aborted, Reason};
BupSchema ->
More information about the erlang-bugs
mailing list