diff options
| author | David Bremner <david@tethera.net> | 2021-03-14 11:01:57 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-03-18 08:03:36 -0300 |
| commit | 1121299905e2b2684d7cc56ec35c26c3a012783e (patch) | |
| tree | ae0b17de61de2731d80a93f47fd472bd5113a4a9 /lib/message.cc | |
| parent | 9a5406cc94f26dfa4839bacaae80b94d4ad6739e (diff) | |
lib: publish API for notmuch_database_reopen
Include the (currently unused) mode argument which will specify which
mode to re-open the database in. Functionality and docs to be
finalized in a followup commit.
Diffstat (limited to 'lib/message.cc')
| -rw-r--r-- | lib/message.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/message.cc b/lib/message.cc index dc4b47dc..73a7805f 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -459,7 +459,8 @@ _notmuch_message_ensure_metadata (notmuch_message_t *message, void *field) /* all the way without an exception */ break; } catch (const Xapian::DatabaseModifiedError &error) { - notmuch_status_t status = _notmuch_database_reopen (message->notmuch); + notmuch_status_t status = notmuch_database_reopen (message->notmuch, + NOTMUCH_DATABASE_MODE_READ_ONLY); if (status != NOTMUCH_STATUS_SUCCESS) INTERNAL_ERROR ("unhandled error from notmuch_database_reopen: %s\n", notmuch_status_to_string (status)); |
