]> git.cworth.org Git - notmuch/commit
lib: add NOTMUCH_STATUS_CLOSED_DATABASE, use in _n_d_ensure_writable
authorDavid Bremner <david@tethera.net>
Wed, 25 May 2022 10:51:16 +0000 (07:51 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 25 Jun 2022 19:06:18 +0000 (16:06 -0300)
commit3f27cce71f9f154cb0c2134c32d41c31eb62a239
tree885c88706efdd7a771944287e4c2c27cfe737e11
parent7e654e2a456c552052e9e50b83da73b4d31d8f2b
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.
bindings/python-cffi/notmuch2/_build.py
lib/database.cc
lib/notmuch-private.h
lib/notmuch.h
test/T562-lib-database.sh
test/T563-lib-directory.sh
test/T566-lib-message.sh