]> git.notmuchmail.org Git - notmuch/commit
Actually close the xapian database in notmuch_database_close
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Fri, 2 Mar 2012 14:58:39 +0000 (15:58 +0100)
committerDavid Bremner <bremner@debian.org>
Sat, 3 Mar 2012 15:30:07 +0000 (11:30 -0400)
commitcfc5f1059aa16753cba610c41601cacc97260e08
tree072b2c4268b2fd77bcfe3c115bcac244d3bc6953
parent3ed8c3d9a6915f7598c3d2aae3c1d8ea9a9ce140
Actually close the xapian database in notmuch_database_close

Formerly the xapian database object was deleted and closed in its
destructor once the object was garbage collected. Explicitly call
close() so that the database and the associated lock is released
immediately.

The comment is a courtesy of Austin Clements.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
lib/database.cc