[erlang-questions] mnesia, ordered_set and disc_copies

Philip Clarke <>
Wed Oct 31 17:43:35 CET 2012


I have a simple record defined as:
-record(user, {id, name}).

Next I start up mnesia and try to create a table as follows:

mnesia:create_table(user, [{type, ordered_set}, {disc_copies, [node()]},
{attributes, record_info(fields, user)}]).

This gives me this error:

If i change the table type to be ram_copies, everything works fine.
I realise that I cannot use disc_only_copies with ordered_set, but I
thought that disc_copies was supported.

Am I doing something else wrong ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121031/9cd94c9d/attachment.html>

More information about the erlang-questions mailing list