Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  Local tables in mnesia cluster?

Guest
Posted: Tue Aug 08, 2006 3:08 pm Reply with quote
Guest
I have some tables in a cluster that I don't want mnesia to replicate.
I looked at change_table_copy - didn't see a "local_table" option (I did
find "unknown" option in the code which doesn't do what we want either).
I also looked at del_table_copy which didn't seem like the right
command. How do I tell mnesia to replicate only certain tables but
leave the others alone?

Thanks,
--simon
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Wed Aug 09, 2006 9:50 am Reply with quote
Guest
A local table can be created by setting the local_content table
parameter to true in create_table/2.

See
http://erlang.se/doc/doc-5.4/lib/mnesia-4.2/doc/html/mnesia.html
for the table parameters description and
http://erlang.org/doc/doc-5.5/lib/mnesia-4.3.1/doc/html/index.html
for the create_table/2 usage.

--
J

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum