[erlang-questions] mnesia, ordered_set and disc_copies

Philip Clarke send2philip@REDACTED
Wed Oct 31 17:43:35 CET 2012


Hi,

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:
{aborted,{bad_type,user,disc_copies,nonode@REDACTED}}


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 ?

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


More information about the erlang-questions mailing list