aboutsummaryrefslogtreecommitdiff
path: root/lib/database.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-10-05 08:34:33 -0300
committerDavid Bremner <david@tethera.net>2016-10-25 18:13:52 -0300
commit7f07a3f0edd225a2d07086251d60d87d41c87ef5 (patch)
tree1bc3b2b749ec0552ed47663b32afcd5783bd1f45 /lib/database.cc
parent8a82ad716f807f8ba1e39269ad169dccd4a15ade (diff)
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.
Diffstat (limited to 'lib/database.cc')
-rw-r--r--lib/database.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/database.cc b/lib/database.cc
index f0bfe566..2d19f20c 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -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());