From 4d4913f437970435676943624ff844e94bd766d5 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 4 Mar 2012 12:18:32 +2000 Subject: [PATCH] Re: [PATCH] Actually close the xapian database in notmuch_database_close --- fe/daa353d99481fcae64a7fc683b98b7409e6894 | 65 +++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 fe/daa353d99481fcae64a7fc683b98b7409e6894 diff --git a/fe/daa353d99481fcae64a7fc683b98b7409e6894 b/fe/daa353d99481fcae64a7fc683b98b7409e6894 new file mode 100644 index 000000000..bdabe65fb --- /dev/null +++ b/fe/daa353d99481fcae64a7fc683b98b7409e6894 @@ -0,0 +1,65 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 7B684431FAF + for ; Sat, 3 Mar 2012 08:19:03 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id ctirOIHDUSBh for ; + Sat, 3 Mar 2012 08:19:03 -0800 (PST) +Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E111E431FAE + for ; Sat, 3 Mar 2012 08:19:02 -0800 (PST) +Received: from fctnnbsc30w-142166230117.dhcp-dynamic.fibreop.nb.bellaliant.net + ([142.166.230.117] helo=zancas.localnet) + by tesseract.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) + (Exim 4.72) (envelope-from ) + id 1S3rfe-0000x4-KV; Sat, 03 Mar 2012 12:18:59 -0400 +Received: from bremner by zancas.localnet with local (Exim 4.77) + (envelope-from ) + id 1S3rfE-0000iU-BT; Sat, 03 Mar 2012 12:18:32 -0400 +From: David Bremner +To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org +Subject: Re: [PATCH] Actually close the xapian database in + notmuch_database_close +In-Reply-To: + <1330700319-26531-1-git-send-email-4winter@informatik.uni-hamburg.de> +References: <20120301181141.GA4797@mit.edu> + <1330700319-26531-1-git-send-email-4winter@informatik.uni-hamburg.de> +User-Agent: Notmuch/0.11.1+288~g4b3af0e (http://notmuchmail.org) Emacs/23.3.1 + (x86_64-pc-linux-gnu) +Date: Sat, 03 Mar 2012 12:18:32 -0400 +Message-ID: <87obsdpsiv.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Spam_bar: - +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 03 Mar 2012 16:19:03 -0000 + +On Fri, 2 Mar 2012 15:58:39 +0100, Justus Winter <4winter@informatik.uni-hamburg.de> wrote: +> 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. + +pushed. -- 2.26.2