]> git.notmuchmail.org Git - notmuch/commit
lib: Add support for nested atomic sections.
authorAustin Clements <amdragon@mit.edu>
Sat, 11 Jun 2011 03:35:06 +0000 (23:35 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 24 Sep 2011 01:50:38 +0000 (21:50 -0400)
commite59cc0031fbf84f49e32dedb9927f427d2c49309
treea62b654a3a0bc1bdb1b394dd3e6dc9a2dd046931
parent957f1ba3fc1d737887029ff1787fc6bea94de00b
lib: Add support for nested atomic sections.

notmuch_database_t now keeps a nesting count and we only start a
transaction or commit for the outermost atomic section.

Introduces a new error, NOTMUCH_STATUS_UNBALANCED_ATOMIC.
lib/database-private.h
lib/database.cc
lib/notmuch.h
notmuch-new.c