[erlang-questions] auto-syncing mnesia after a network split
Tue Dec 2 18:18:40 CET 2008
what happens when you have multiple updates to both sides of the split? if
you just pick the highest vnum, you lose all the transactions from the other
side of the split when it rejoins.
On Tue, Dec 2, 2008 at 12:04 PM, Joel Reymont <> wrote:
> What about keeping a version counter on each mnesia node in the
> cluster and adding a version number to every record?
> Alternatively, the version counter could be kept per table or a
> timestamp could be used instead.
> The version number would be bumped on every insert or update and the
> node or table with the highest vnum would be chosen as the master
> after nodes rejoin.
> The goal is to pick the latest record as the true one.
> What do you think?
> Sent from my iPhone
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions