aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-new.c
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@mit.edu>2011-06-10 23:35:06 -0400
committerGravatar David Bremner <bremner@debian.org>2011-09-23 21:50:38 -0400
commite59cc0031fbf84f49e32dedb9927f427d2c49309 (patch)
treea62b654a3a0bc1bdb1b394dd3e6dc9a2dd046931 /notmuch-new.c
parent957f1ba3fc1d737887029ff1787fc6bea94de00b (diff)
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.
Diffstat (limited to 'notmuch-new.c')
-rw-r--r--notmuch-new.c1
1 files changed, 1 insertions, 0 deletions
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;