X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=fa632f85121a56d969c2365ff882282290007f53;hb=968965635197a6646688c0edd759f0c4f74181cb;hp=88be939138c7e6db51fc2e1fc70313bb170d2a1e;hpb=1dedfc90f6eee7cad10f1a1ceb39a7a1c4dbd1b1;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 88be9391..fa632f85 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -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());