From e59cc0031fbf84f49e32dedb9927f427d2c49309 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 10 Jun 2011 23:35:06 -0400 Subject: 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. --- notmuch-new.c | 1 + 1 file changed, 1 insertion(+) (limited to 'notmuch-new.c') diff --git a/notmuch-new.c b/notmuch-new.c index fb59d90c..82e2d358 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -488,6 +488,7 @@ add_files_recursive (notmuch_database_t *notmuch, case NOTMUCH_STATUS_NULL_POINTER: case NOTMUCH_STATUS_TAG_TOO_LONG: case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: + case NOTMUCH_STATUS_UNBALANCED_ATOMIC: case NOTMUCH_STATUS_LAST_STATUS: INTERNAL_ERROR ("add_message returned unexpected value: %d", status); goto DONE; -- cgit v1.2.3