diff options
| author | David Bremner <david@tethera.net> | 2022-05-25 07:51:16 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-06-25 16:06:18 -0300 |
| commit | 3f27cce71f9f154cb0c2134c32d41c31eb62a239 (patch) | |
| tree | 885c88706efdd7a771944287e4c2c27cfe737e11 /lib/notmuch.h | |
| parent | 7e654e2a456c552052e9e50b83da73b4d31d8f2b (diff) | |
lib: add NOTMUCH_STATUS_CLOSED_DATABASE, use in _n_d_ensure_writable
In order for a database to actually be writeable, it must be the case that it
is open, not just the correct type of Xapian object. By explicitely
checking, we are able to provide better error reporting, in particular
for the previously broken test in T566-lib-message.
Diffstat (limited to 'lib/notmuch.h')
| -rw-r--r-- | lib/notmuch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index 44263a66..0b0540b1 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -229,6 +229,10 @@ typedef enum { */ NOTMUCH_STATUS_NO_MAIL_ROOT, /** + * Database is not fully opened, or has been closed + */ + NOTMUCH_STATUS_CLOSED_DATABASE, + /** * Not an actual status value. Just a way to find out how many * valid status values there are. */ |
