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. <br><br><br><div class="gmail_quote">
On Tue, Dec 2, 2008 at 12:04 PM, Joel Reymont <span dir="ltr"><<a href="mailto:joelr1@gmail.com">joelr1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What about keeping a version counter on each mnesia node in the<br>
cluster and adding a version number to every record?<br>
<br>
Alternatively, the version counter could be kept per table or a<br>
timestamp could be used instead.<br>
<br>
The version number would be bumped  on every insert or update and the<br>
node or table with the highest vnum would be chosen as the master<br>
after nodes rejoin.<br>
<br>
The goal is to pick the latest record as the true one.<br>
<br>
What do you think?<br>
<br>
Sent from my iPhone<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br>