无服务器同步

下载时候,只下载T global >= L global的
上传的时候如果T Global < L Global ,则 conflict
只上传mark = true的.同时增加Global Verson. 上传插入的时候只插入 TV>LV的

A insert 100
a100-0
AGlobal = 0

A upload to B
a100-0  
b100-0
AGlobal = 1
BGlobal = 1

A delete 99
a1-0 
AGlobal = 1

A upload  to B
a1-0  
b1-0
AGlobal = 2
BGlobal = 2

B change 1 and insert 100
b1-1    b100-0
Global = 2

B upload to A
a1-1   a100-0
b1-1    b100-0
Global = 3

C download from A
a1-1 a100-0
c1-1 c100-0

C change 1
c1-1 c99-0                     c1-1

B change 1 but not the one of C
b1-1    b99-0 b1-1
 
B upload to A
a1-1   a99-0 a1-1(b)
b1-1    b99-0 b1-1

C upload to A
a1-1   a98-0 a1-1(b)      a1-1(c)
c1-1 c99-0                      c1-1

C change 1 , which is the one of B changed
c1-1 c98-0      c1-1         c1-1

C upload to A
a1-1   a98-0 a1-1(b)      a1-1(c)
c1-1 c98-0      c1-1(b)         c1-1   (conflict!)

一些思考.最后没有结果的结束了.

相关文章:

  • 2021-11-26
  • 2021-12-09
  • 2021-04-15
  • 2021-08-01
  • 2022-01-15
  • 2021-09-13
  • 2021-12-03
  • 2022-02-18
猜你喜欢
  • 2021-09-11
  • 2021-08-14
  • 2021-08-08
  • 2021-08-14
  • 2022-01-10
  • 2021-07-16
  • 2021-05-31
相关资源
相似解决方案