Skip to content

cache remove-before-insert ops#98

Open
alex-shapiro wants to merge 6 commits intomasterfrom
allow-remove-before-insert
Open

cache remove-before-insert ops#98
alex-shapiro wants to merge 6 commits intomasterfrom
allow-remove-before-insert

Conversation

@alex-shapiro
Copy link
Owner

@alex-shapiro alex-shapiro commented Mar 18, 2018

Right now, Ditto discards any REMOVE op that is received before its corresponding INSERT op. This leads to inconsistencies in the following case:

site1: INSERT(A) -> op1
site2: EXECUTE(op1)
site2: REMOVE(A) -> op2
site3: EXECUTE(op2)
site3: EXECUTE(op1)

This PR fixes the bug by caching any REMOVE op received before its corresponding INSERT op and executing the REMOVE op once the INSERT has been executed.

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.

1 participant