mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
lib: replace deprecated xapian call 'flush()' with 'commit()'
This will make notmuch incompatible with Xapian before 1.1.0, which is more than 6 years old this point.
This commit is contained in:
parent
8a82ad716f
commit
7f07a3f0ed
1 changed files with 1 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ notmuch_database_end_atomic (notmuch_database_t *notmuch)
|
|||
* However, we rely on flushing to test atomicity. */
|
||||
const char *thresh = getenv ("XAPIAN_FLUSH_THRESHOLD");
|
||||
if (thresh && atoi (thresh) == 1)
|
||||
db->flush ();
|
||||
db->commit ();
|
||||
} catch (const Xapian::Error &error) {
|
||||
_notmuch_database_log (notmuch, "A Xapian exception occurred committing transaction: %s.\n",
|
||||
error.get_msg().c_str());
|
||||
|
|
Loading…
Reference in a new issue