Re: [PATCH v6 00/17] Fix 'notmuch new' atomicity issues

Subject: Re: [PATCH v6 00/17] Fix 'notmuch new' atomicity issues

Date: Mon, 26 Sep 2011 18:07:01 -0400

To: David Bremner

Cc: notmuch@notmuchmail.org

From: Austin Clements


Quoth David Bremner on Sep 24 at 11:36 pm:
> On Sat, 24 Sep 2011 00:03:02 -0400, Austin Clements <amdragon@MIT.EDU> wrote:
> > 
> > Awesome.  Only seven more to go!
> 
> The remaining seven are pushed, along with some related debian packaging
> things.

Huzzah!

> Austin, could I bug you for some atomicity related items for NEWS? I
> guess at least the 3 new library calls should be mentioned.

In fact, I've been looking forward to writing some NEWS items!


Correct handling of interruptions during "notmuch new"

  "notmuch new" now operates as a series of small, self-consistent
  transactions, so it can correctly resume after an interruption or
  crash.  Previously, interruption could lose existing tags, fail to
  detect messages on resume, or leave the database in a state
  temporarily or permanently inconsistent with the mail store.

Library changes
---------------

New functions

  notmuch_database_begin_atomic and notmuch_database_end_atomic allow
  multiple database operations to be performed atomically.

  notmuch_database_find_message_by_filename does exactly what it says.

Thread: