From: Austin Clements Date: Sat, 11 Jun 2011 04:42:58 +0000 (-0400) Subject: lib: Wrap notmuch_database_add_message in an atomic section. X-Git-Tag: 0.9_rc1~15 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=51c3c0b2d27c8d0ba8e1ae242fd907c59f82d992;hp=51c3c0b2d27c8d0ba8e1ae242fd907c59f82d992;p=notmuch 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. ---