[erlang-questions] auto-syncing mnesia after a network split
Mihai Balea
mihai@REDACTED
Tue Dec 2 23:13:24 CET 2008
On Dec 2, 2008, at 3:24 PM, David Mercer wrote:
> How do you handle unsynched clocks on the two nodes?
>
> How about two different transactions that occur at the same time on
> the two
> nodes right after the split?
>
> And if an account with balance x before the split on one node has a
> balance
> of x + d1 after a deposit, while the other node has balance x + d2
> after
> another deposit, all you have during the merge is the balances x +
> d1 and x
> + d2, and no way to identify d1 and d2 without knowing x. Isn't
> this what
> databases use transaction logs for, and if so, can we learn anything
> from
> how they handle this situation? Anyone have that expertise?
How about Vector Clocks (http://en.wikipedia.org/wiki/Vector_clocks)?
Mihai
More information about the erlang-questions
mailing list