You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Concurrent edits no longer get lost (CouchDB mode, #2).edit_note writes 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_note overwrites use the same check, so they no longer leave hidden conflict revisions. Creating a note, delete_note and move_note are not checked yet. Thanks @Nerodacles.
write_note and edit_note take an optional expected_revision: the write only happens if the note is still at that revision.
Changed
read_note, get_note_metadata and write answers now include a Revision: <rev> line (CouchDB mode). Clients that parse these answers must accept it.
A write_note on a note that keeps changing during the whole retry budget is now refused instead of overwriting.