aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-new.c
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@mit.edu>2011-06-11 00:42:58 -0400
committerGravatar David Bremner <bremner@debian.org>2011-09-24 20:00:28 -0300
commit51c3c0b2d27c8d0ba8e1ae242fd907c59f82d992 (patch)
tree57b117ffe9c30fdb9fa958d619825590963867fd /notmuch-new.c
parent7a8046ced8c0e61ddd0ff463cfc17ed63e6edad3 (diff)
lib: Wrap notmuch_database_add_message in an atomic section.
Adding a message may involve changes to multiple database documents, and thus needs to be done in a transaction. This makes add_message (and, I think, the whole library) atomicity-safe: library callers only needs to use atomic sections if they needs atomicity across multiple library calls.
Diffstat (limited to 'notmuch-new.c')
0 files changed, 0 insertions, 0 deletions