X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdatabase.cc;h=2d19f20c4b5e5d6c75518942917d4550a4891dcb;hp=f0bfe5667fba4736996583830047d7529cd390fc;hb=f8d5c9b80ebeac65a93c80ec2a0d3e514f8ea771;hpb=ba8fba3d6aa37b1c7698137f6d577309335981ae 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());