]> git.notmuchmail.org Git - notmuch/commit - lib/notmuch.h
lib: support reopening databases for write access.
authorDavid Bremner <david@tethera.net>
Sun, 14 Mar 2021 14:01:59 +0000 (11:01 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 18 Mar 2021 11:04:06 +0000 (08:04 -0300)
commit13efbd0e1c88fcbdb48b4c30c7852c5bf1fbd0b7
tree601d78a964f42acf4c3d41b813e70fadc27eda82
parentf0717aa380cfa84c1973f7b03948d93b261a73fe
lib: support reopening databases for write access.

In the future Xapian will apparently support this more conveniently
for the cases other than READ_ONLY => READ_ONLY

Conceptually this function seems to fit better in lib/open.cc;
database.cc is still large enough that moving the function makes
sense.
lib/database.cc
lib/notmuch.h
lib/open.cc
test/T595-reopen.sh [new file with mode: 0755]