]> git.cworth.org Git - notmuch/commit
Permit opening the notmuch database in read-only mode.
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Nov 2009 19:54:25 +0000 (19:54 +0000)
committerCarl Worth <cworth@cworth.org>
Sat, 21 Nov 2009 21:04:49 +0000 (22:04 +0100)
commitf379aa52845f5594aa6cc2e7cf131d5f57202bbf
tree1befbaa8796388c58fd40459ea42b93881af008e
parentaac1d6035238f6a2b18c0dc0d7a5190a2187c511
Permit opening the notmuch database in read-only mode.

We only rarely need to actually open the database for writing, but we
always create a Xapian::WritableDatabase. This has the effect of
preventing searches and like whilst updating the index.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Carl Worth <cworth@cworth.org>
12 files changed:
lib/database-private.h
lib/database.cc
lib/message.cc
lib/notmuch-private.h
lib/notmuch.h
notmuch-dump.c
notmuch-new.c
notmuch-reply.c
notmuch-restore.c
notmuch-search.c
notmuch-show.c
notmuch-tag.c