Patch: Flush and Reopen

Subject: Patch: Flush and Reopen

Date: Wed, 07 Sep 2011 21:34:34 -0400

To: Notmuch developer list

Cc: Paul Tagliamonte

From: Martin Owens


Per discussions on irc, I've attached a patch for your consideration
which allows the developer to run two new database commands;

notmuch_database_flush - used on read_write databases to commit changes
to disk
notmuch_database_reopen - used on read_only databases to reload from the

Used in conjunction they can allow access by multiple programs at the
same time. There are also changes to the python bindings to add these
two methods to the database class.

Regards, Martin Owens