notmuch_database_close: Explicitly flush the Xapian database.
authorCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 23:17:22 +0000 (16:17 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 23:17:22 +0000 (16:17 -0700)
commit854f82fb91ef9560259e4597d475747e948204d5
tree1c21fcf9c099ad29264244f3bd07d47cf2fd7679
parentb0190e59ac14851a0b79a00d58aad2e8febea92f
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.
database.cc