Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delta data types #109

Open
wants to merge 38 commits into
base: develop
Choose a base branch
from
Open

Delta data types #109

wants to merge 38 commits into from

Conversation

balegas
Copy link

@balegas balegas commented Nov 19, 2014

Added a simple delta od flag crdt.
The delta of enable operation creates a new "Flag" list with a dot and the current clock updated with that dot.
The disable operation removes any dot in the "Flag" field, (Clock,[]) > (Clock,Dots) as before.
Merge behaves just the same.

  • Supports update and delta update operations.
  • Does not accept context on update
  • Didn't run dialyzer
  • Alternatively we can build the same data-type without the clock in the delta, but adding tombstones on disable operations.
    • Tombstones could be garbage collected during the merge
    • Reduces the size of the deltas, when the number of dots in the "Flag" field is smaller than the total number of clients.

russelldb and others added 30 commits June 18, 2014 16:33
TODO: deferred operations, embedded behaviour (takes dot),
eqc postconditions
If we only return values that are covered by the contiguous set of events summarised by the clock, then we maintain causal ordering over delta operations.
The problem its not with not using deferred operations, but the map/delta must be fixed before moving on.
…WOT.

Map has some problems with field removes --- check comments.
Added get_deferred operation for all data-types
ifdef in orddict for map structures under eqc test for easier reading
fix delta update to read from values but merge/write to delta values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants