From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 21 Mar 2012 00:55:04 +0000 (+0100) Subject: [RFC] Split notmuch_database_close into two functions X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=fbc2f029b7adec3b8379b1ff19c960b4d3d94721;p=notmuch-archives.git [RFC] Split notmuch_database_close into two functions --- diff --git a/5a/cb24b5c7a88338e004ce2e59bd5f5feffaac0c b/5a/cb24b5c7a88338e004ce2e59bd5f5feffaac0c new file mode 100644 index 000000000..f300f5f94 --- /dev/null +++ b/5a/cb24b5c7a88338e004ce2e59bd5f5feffaac0c @@ -0,0 +1,69 @@ +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 AE3BC431FAF + for ; Tue, 20 Mar 2012 17:55:32 -0700 (PDT) +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 jnHDPEVwO+co for ; + Tue, 20 Mar 2012 17:55:31 -0700 (PDT) +Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id CBD02431FAE + for ; Tue, 20 Mar 2012 17:55:30 -0700 (PDT) +Received: from mail.jade-hamburg.de (unknown [85.183.11.228]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by mail.cryptobitch.de (Postfix) with ESMTPSA id D0B5457678B + for ; Wed, 21 Mar 2012 01:55:28 +0100 (CET) +Received: by mail.jade-hamburg.de (Postfix, from userid 401) + id 29A73DF2A9; Wed, 21 Mar 2012 01:55:28 +0100 (CET) +Received: from thinkbox.jade-hamburg.de (unknown [10.1.1.153]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) (Authenticated sender: teythoon) + by mail.jade-hamburg.de (Postfix) with ESMTPSA id AB510DF2A0 + for ; Wed, 21 Mar 2012 01:55:25 +0100 (CET) +Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77) + (envelope-from ) + id 1SA9pj-0007v5-Vf + for notmuch@notmuchmail.org; Wed, 21 Mar 2012 01:55:24 +0100 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +To: notmuch@notmuchmail.org +Subject: [RFC] Split notmuch_database_close into two functions +Date: Wed, 21 Mar 2012 01:55:04 +0100 +Message-Id: + <1332291311-28954-1-git-send-email-4winter@informatik.uni-hamburg.de> +X-Mailer: git-send-email 1.7.9.1 +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: Wed, 21 Mar 2012 00:55:32 -0000 + +I propose to split the function notmuch_database_close into +notmuch_database_close and notmuch_database_destroy so that long +running processes like alot can close the database while still using +data obtained from queries to that database. + +I've updated the tools, the go, ruby and python bindings to use +notmuch_database_destroy instead of notmuch_database_close to destroy +database objects. + +Cheers, +Justus