[erlang-questions] Mnesia table replication

Dana.RUBINO <>
Mon Nov 17 13:19:34 CET 2008


Thanks Chandru - that's been a great help.

I ran mnesia:change_config(extra_db_nodes, ['']).

The create table command now works - this will now I assume give me replication and conflict resolution between these two nodes?

Thanks,
Dan


________________________________
From: Chandru [mailto:]
Sent: 17 November 2008 12:07
To: RUBINO, Dana, GBM
Cc: 
Subject: Re: [erlang-questions] Mnesia table replication

2008/11/17 <<mailto:>>
Ok I have given it a go with a test table as such:

-module(test).
-record(test, {id, name}).

test() ->
    mnesia:create_table(test, [{attributes, record_info(fields, test)}, {disc_copies, ['']}]).


I then create two local nodes on the same machine and start up Mnesia on each.

When looking at each node via the appmon I can see Mnesia has started - I can also ping one node from another.

When however I run the test method on one node expecting it to create a replica on the other I get the following error:

{aborted,{}}

Have I missed a step here perhaps?


Is the schema shared across both the nodes? What does mnesia:system_info(db_nodes) return?

Chandru


***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbs.com/gbm
www.rbsgc.com
***********************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081117/b86bd097/attachment.html>


More information about the erlang-questions mailing list