diff options
author | Dan Gudmundsson <[email protected]> | 2011-10-27 16:21:25 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2011-11-07 14:19:55 +0100 |
commit | 63f4750fe4bc3249958d9397a9f5e4453fd35042 (patch) | |
tree | ac469e0052064961da6827f799f67190470ccaef /lib/mnesia/src/mnesia_bup.erl | |
parent | 95a7cca40ae52f32b9eb4f0664857e804636ec2c (diff) | |
download | otp-63f4750fe4bc3249958d9397a9f5e4453fd35042.tar.gz otp-63f4750fe4bc3249958d9397a9f5e4453fd35042.tar.bz2 otp-63f4750fe4bc3249958d9397a9f5e4453fd35042.zip |
[mnesia] Make all schema operations protocol aware
Allow schema operation even if not all nodes are upgraded to
latest version.
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), |