diff options
author | Ulf Wiger <[email protected]> | 2010-12-09 18:14:15 +0100 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-05-16 11:00:28 +0200 |
commit | 38eef7af0f8bc1d2d152cefb8df1e1303ddcac45 (patch) | |
tree | d9c59098037eafa221a08efaa085933e8915c127 /lib/mnesia/src/mnesia_schema.erl | |
parent | 6d446fc5d08d56174a79ab546d5aa2e79277af06 (diff) | |
download | otp-38eef7af0f8bc1d2d152cefb8df1e1303ddcac45.tar.gz otp-38eef7af0f8bc1d2d152cefb8df1e1303ddcac45.tar.bz2 otp-38eef7af0f8bc1d2d152cefb8df1e1303ddcac45.zip |
Write locks now check majority when needed.
Since the table loader also sets (table) write locks, a special
lock type, 'load', was needed. Unfortunately, this affects mnesia
activity callbacks that redefine the lock operation.
Diffstat (limited to 'lib/mnesia/src/mnesia_schema.erl')
-rw-r--r-- | lib/mnesia/src/mnesia_schema.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mnesia/src/mnesia_schema.erl b/lib/mnesia/src/mnesia_schema.erl index a6c8ffec01..b3f06322d9 100644 --- a/lib/mnesia/src/mnesia_schema.erl +++ b/lib/mnesia/src/mnesia_schema.erl @@ -179,6 +179,7 @@ do_set_schema(Tab, Cs) -> set({Tab, load_order}, Cs#cstruct.load_order), set({Tab, access_mode}, Cs#cstruct.access_mode), set({Tab, majority}, Cs#cstruct.majority), + set({Tab, all_nodes}, mnesia_lib:cs_to_nodes(Cs)), set({Tab, snmp}, Cs#cstruct.snmp), set({Tab, user_properties}, Cs#cstruct.user_properties), [set({Tab, user_property, element(1, P)}, P) || P <- Cs#cstruct.user_properties], |