[notmuch] [PATCH] Permit opening the notmuch database in read-only mode.

2009-11-22 Thread Carl Worth
On Sat, 21 Nov 2009 20:08:31 +, Chris Wilson wrote: > [ickle: Updated to add WRITABLE mode to notmuch-new] Oops. I committed your earlier version, but then fixed this up afterwards myself. -Carl

[notmuch] [PATCH] Permit opening the notmuch database in read-only mode.

2009-11-21 Thread Carl Worth
On Sat, 21 Nov 2009 12:06:43 -0800, Keith Packard wrote: > On Sat, 21 Nov 2009 19:54:25 +, Chris Wilson chris-wilson.co.uk> wrote: > > > +typedef enum { > > +NOTMUCH_DATABASE_MODE_READONLY = 0, > > +NOTMUCH_DATABASE_MODE_WRITABLE > > +} notmuch_database_mode_t; > > Wondering if

[notmuch] [PATCH] Permit opening the notmuch database in read-only mode.

2009-11-21 Thread Chris Wilson
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 [ickle: Updated to add WRITABLE mode to notmuch-new]

[notmuch] [PATCH] Permit opening the notmuch database in read-only mode.

2009-11-21 Thread Chris Wilson
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 ++- lib/database.cc

[notmuch] [PATCH] Permit opening the notmuch database in read-only mode.

2009-11-21 Thread Keith Packard
On Sat, 21 Nov 2009 19:54:25 +, Chris Wilson wrote: > +typedef enum { > +NOTMUCH_DATABASE_MODE_READONLY = 0, > +NOTMUCH_DATABASE_MODE_WRITABLE > +} notmuch_database_mode_t; Wondering if MODE_READWRITE would be more descriptive? -- keith.packard at intel.com -- next