diff options
author | Dan Gudmundsson <[email protected]> | 2011-11-11 11:21:44 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2011-11-11 11:21:44 +0100 |
commit | edf830a338e78cfe88eee181b1e60a5f3f6b671b (patch) | |
tree | 121136addec02fd343a0fbb8020a9f6952985a79 /lib/mnesia/src/mnesia_bup.erl | |
parent | 857e8a96dc7902e7d6a97ea510a0ce0e69731631 (diff) | |
parent | 758e7b817293f7da71c5bdf2c2e2eb6f70e23687 (diff) | |
download | otp-edf830a338e78cfe88eee181b1e60a5f3f6b671b.tar.gz otp-edf830a338e78cfe88eee181b1e60a5f3f6b671b.tar.bz2 otp-edf830a338e78cfe88eee181b1e60a5f3f6b671b.zip |
Merge branch 'maint-r14'
Diffstat (limited to 'lib/mnesia/src/mnesia_bup.erl')
-rw-r--r-- | lib/mnesia/src/mnesia_bup.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_bup.erl b/lib/mnesia/src/mnesia_bup.erl index 47dcdad7ac..14414537b9 100644 --- a/lib/mnesia/src/mnesia_bup.erl +++ b/lib/mnesia/src/mnesia_bup.erl @@ -372,7 +372,9 @@ mk_str() -> lists:concat([node()] ++ Now ++ ".TMP"). make_initial_backup(Ns, Opaque, Mod) -> - Schema = [{schema, schema, mnesia_schema:get_initial_schema(disc_copies, Ns)}], + Orig = mnesia_schema:get_initial_schema(disc_copies, Ns), + Modded = proplists:delete(storage_properties, proplists:delete(majority, Orig)), + Schema = [{schema, schema, Modded}], O2 = do_apply(Mod, open_write, [Opaque], Opaque), O3 = do_apply(Mod, write, [O2, [mnesia_log:backup_log_header()]], O2), O4 = do_apply(Mod, write, [O3, Schema], O3), |