[erlang-questions] Yet Another MNESIA net split recover question

Roberto Ostinelli <>
Wed Mar 4 16:55:49 CET 2015


Using unsplit was the original intent :)

However, my case is much simpler, I do not need to solve conflicts. The
only thing I really need is to:

   - Take what is on NodeA and add it to NodeB's table
   - Take what is on NodeB and add it to NodeA's table

I took most of the unsplit code and heavily simplified it to my case :)

Thank you Ulf,
r.



On Wed, Mar 4, 2015 at 11:21 AM, Ulf Wiger <> wrote:

>
> On 03 Mar 2015, at 21:32, Roberto Ostinelli <> wrote:
>
> I've seen in Ulf's unsplit that the function
> mnesia_controller:connect_nodes/2 is used to reconnect nodes. However, I
> cannot find any documentation for this function and I wander if that would
> be a good option.
>
> Any idea on how to reconnect nodes and have mnesia act "normal" again
> after a partitioned event without stopping/starting it?
>
>
> That function was actually added in order to make unsplit work, but as
> you’ve noted, it’s not part of the documented API.
>
> If it works for unsplit, it ought to work for you, but another option
> would be to actually use unsplit, distancing yourself one step from the use
> of an undocumented function. ;-)
>
> BR,
> Ulf W
>
> Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
> http://feuerlabs.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150304/ab422b4f/attachment.html>


More information about the erlang-questions mailing list