mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
notmuch_database_close: Explicitly flush the Xapian database.
This would have helped with the recent bug causing "notmuch new" to not record any results in the database. I'm not sure why the explicit flush would be required, (shouldn't the destructor always ensure that things flush?), but perhaps some outstanding references from the leak prevented that. In any case, an explicit flush on close() seems to make sense.
This commit is contained in:
parent
b0190e59ac
commit
854f82fb91
1 changed files with 2 additions and 0 deletions
|
@ -505,6 +505,8 @@ notmuch_database_open (const char *path)
|
|||
void
|
||||
notmuch_database_close (notmuch_database_t *notmuch)
|
||||
{
|
||||
notmuch->xapian_db->flush ();
|
||||
|
||||
delete notmuch->query_parser;
|
||||
delete notmuch->xapian_db;
|
||||
talloc_free (notmuch);
|
||||
|
|
Loading…
Reference in a new issue