summaryrefslogtreecommitdiff
path: root/scripts/profiling/mail/soledad_server.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-08-05 12:34:13 -0300
committerdrebs <drebs@leap.se>2016-08-05 12:34:13 -0300
commit18e4ffe5562be61efe9cd206494b9853e063a897 (patch)
tree4eb4639b84b0cb519fd2eb7c85ab4e783b1debcb /scripts/profiling/mail/soledad_server.py
parent9084597674130682d84cd1884c8dbd24b866096e (diff)
[bug] create gen document after saving the actual document in couch
If we create the gen document before saving the actual document in couch, we may run into problems if more than one client is syncing and trying to save documents with the same id at the same time. By moving the gen document creation to after the actual document save in couch, we rely on couch/u1db resolution of conflicts before actually allocating a new generation, and the problem above doesn't occur.
Diffstat (limited to 'scripts/profiling/mail/soledad_server.py')
0 files changed, 0 insertions, 0 deletions