meangirls icon indicating copy to clipboard operation
meangirls copied to clipboard

lww structure when deleted before added

Open reiddraper opened this issue 13 years ago • 1 comments

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
  ]
}

reiddraper avatar Jan 08 '12 01:01 reiddraper

Agreed!

Reid Draper [email protected] 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: https://github.com/aphyr/meangirls/issues/2

aphyr avatar Jan 08 '12 05:01 aphyr