]> git.notmuchmail.org Git - notmuch/commit
new: Wrap adding and removing messages in atomic sections.
authorAustin Clements <amdragon@mit.edu>
Sat, 29 Jan 2011 16:25:56 +0000 (11:25 -0500)
committerDavid Bremner <bremner@debian.org>
Sat, 24 Sep 2011 23:00:29 +0000 (20:00 -0300)
commitbff30540d86c77aacbc2c133c83aa7ccee823b48
tree2868e7ae03ff81ea958a016d2984723c99becea0
parent8305f0aac7f31aeddd54d0af683475ab1492e2b7
new: Wrap adding and removing messages in atomic sections.

This addresses atomicity of tag synchronization, the last atomicity
problems in notmuch new.  Each message add or remove is wrapped in its
own atomic section, so interrupting notmuch new doesn't lose progress.
notmuch-new.c
test/atomicity