[erlang-questions] Yet Another MNESIA net split recover question
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,
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. ;-)
> Ulf W
> Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions