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

lww structure when deleted before added #2

Open
reiddraper opened this issue Jan 8, 2012 · 1 comment
Open

lww structure when deleted before added #2

reiddraper opened this issue Jan 8, 2012 · 1 comment

Comments

@reiddraper
Copy link
Collaborator

What should the lww-set look like when an element has only been deleted (never added). Perhaps the first add timestamp would be null?

{
  'type': 'lww-e-set',
  'bias': 'a',
  'e': [
    ['a', 0],
    ['b', 1, 2],
    ['c', 2, 1],
    ['d', null, 3]  // 'd' was deleted and never added in this replica
  ]
}
@aphyr
Copy link
Owner

aphyr commented Jan 8, 2012

Agreed!

Reid Draper reply@reply.github.com wrote:

What should the lww-set look like when an element has only been deleted (never added). Perhaps the first add timestamp would be null?

{
 'type': 'lww-e-set',
 'bias': 'a',
 'e': [
   ['a', 0],
   ['b', 1, 2],
   ['c', 2, 1],
   ['d', null, 3]  // 'd' was deleted and never added in this replica
 ]
}

Reply to this email directly or view it on GitHub:
#2

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

No branches or pull requests

2 participants