mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
lib/database.cc: use flush Xapian method instead of commit
Apparently the method was renamed in Xapian 1.1.0 but the old method name will stay around for a while. It seems better to stick with the old name to make notmuch compile with older versions of Xapian, at least for now.
This commit is contained in:
parent
556c5fa890
commit
606e4461f8
1 changed files with 1 additions and 1 deletions
|
@ -1015,7 +1015,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->commit ();
|
||||
db->flush ();
|
||||
} catch (const Xapian::Error &error) {
|
||||
fprintf (stderr, "A Xapian exception occurred committing transaction: %s.\n",
|
||||
error.get_msg().c_str());
|
||||
|
|
Loading…
Reference in a new issue