From f379aa52845f5594aa6cc2e7cf131d5f57202bbf Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 21 Nov 2009 19:54:25 +0000 Subject: 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 Acked-by: Carl Worth --- lib/database-private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/database-private.h') diff --git a/lib/database-private.h b/lib/database-private.h index 76e26ce0..79c7916a 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -27,7 +27,8 @@ struct _notmuch_database { char *path; - Xapian::WritableDatabase *xapian_db; + notmuch_database_mode_t mode; + Xapian::Database *xapian_db; Xapian::QueryParser *query_parser; Xapian::TermGenerator *term_gen; }; -- cgit v1.2.3