Features
- Concurrent edits no longer get lost (CouchDB mode, #2).
edit_notewrites only if the note hasn't changed since it read it; otherwise it re-reads and re-applies the edit, with bounded retries. This holds across several server instances on one database. An edit that can't get through is refused, never silently dropped.write_noteoverwrites use the same check, so they no longer leave hidden conflict revisions. Creating a note,delete_noteandmove_noteare not checked yet. Thanks @Nerodacles. write_noteandedit_notetake an optionalexpected_revision: the write only happens if the note is still at that revision.
Changed
read_note,get_note_metadataand write answers now include aRevision: <rev>line (CouchDB mode). Clients that parse these answers must accept it.- A
write_noteon a note that keeps changing during the whole retry budget is now refused instead of overwriting.