diff options
author | drebs <drebs@leap.se> | 2016-08-05 12:34:13 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-08-05 12:34:13 -0300 |
commit | 18e4ffe5562be61efe9cd206494b9853e063a897 (patch) | |
tree | 4eb4639b84b0cb519fd2eb7c85ab4e783b1debcb /server/.gitattributes | |
parent | 9084597674130682d84cd1884c8dbd24b866096e (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 'server/.gitattributes')
0 files changed, 0 insertions, 0 deletions