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