X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=fa632f85121a56d969c2365ff882282290007f53;hb=606e4461f803829077af4e3b2579583f7e39bc3e;hp=88be939138c7e6db51fc2e1fc70313bb170d2a1e;hpb=556c5fa8900d14c61544f3ac016d3cca1db5a91a;p=obsolete%2Fnotmuch-old 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());