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
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 par
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]
---
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 MODE
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