Re: [PATCH 1/7] Split notmuch_database_close into two functions
authorAustin Clements <amdragon@MIT.EDU>
Sun, 22 Apr 2012 18:06:58 +0000 (14:06 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:39 +0000 (09:46 -0800)
22/42e47713a6526fabef7931ce9f806a6edb7fc3 [new file with mode: 0644]

diff --git a/22/42e47713a6526fabef7931ce9f806a6edb7fc3 b/22/42e47713a6526fabef7931ce9f806a6edb7fc3
new file mode 100644 (file)
index 0000000..66f1442
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id CD10C431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 11:07:01 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ARNz0npJAY42 for <notmuch@notmuchmail.org>;\r
+       Sun, 22 Apr 2012 11:07:01 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU\r
+       [18.9.25.15])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3694E431FAF\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 11:07:01 -0700 (PDT)\r
+X-AuditID: 1209190f-b7f8a6d000000914-82-4f9448c44bd4\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+       by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id C9.BC.02324.4C8449F4; Sun, 22 Apr 2012 14:07:00 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q3MI70Le020364; \r
+       Sun, 22 Apr 2012 14:07:00 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q3MI6x1u019455\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Sun, 22 Apr 2012 14:06:59 -0400 (EDT)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1SM1Ba-00080L-TJ; Sun, 22 Apr 2012 14:06:58 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/7] Split notmuch_database_close into two functions\r
+In-Reply-To:\r
+ <1335096477-27537-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
+References: <20120422120620.26225.40778@thinkbox.jade-hamburg.de>\r
+       <1335096477-27537-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
+User-Agent: Notmuch/0.12+132~gf2f390b (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Sun, 22 Apr 2012 14:06:58 -0400\r
+Message-ID: <87wr57hc8t.fsf@awakening.csail.mit.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFnrMIsWRmVeSWpSXmKPExsUixCmqrHvEY4q/wfsFphazW38wWVy/OZPZ\r
+       gclj4vnTbB7PVt1iDmCK4rJJSc3JLEst0rdL4MpYeKmZqWAtW8XEky+YGxhXsXYxcnJICJhI\r
+       3Nk0gx3CFpO4cG89WxcjF4eQwD5Giad7v0A5Gxgl1t3dzwzhnGSS+Hv7GyOEs4RR4uKbhWCz\r
+       2AQ0JLbtX84IYosI+Em8ejiHCcQWFvCQ2HFtD1icUyBIYu3qRqjmdkaJg78Wgi0XFYiX+NO7\r
+       mQ3EZhFQlfi7cjtYAy/Qgbv3HWGFsAUlTs58wgJiMwtoSdz495JpAqPALCSpWUhSCxiZVjHK\r
+       puRW6eYmZuYUpybrFicn5uWlFuma6OVmluilppRuYgSHpST/DsZvB5UOMQpwMCrx8L4ymewv\r
+       xJpYVlyZe4hRkoNJSZQ3BBjUQnxJ+SmVGYnFGfFFpTmpxYcYJTiYlUR4P4sAlfOmJFZWpRbl\r
+       w6SkOViUxHnVtN75CQmkJ5akZqemFqQWwWRlODiUJHg1QIYKFqWmp1akZeaUIKSZODhBhvMA\r
+       DVcGqeEtLkjMLc5Mh8ifYlSUEud95w6UEABJZJTmwfXC0sYrRnGgV4R52UDaeYApB677FdBg\r
+       JqDBCTGTQAaXJCKkpBoY+7curpwvMd05obYxYAL/ldxVXGZ3/O5wm7/esHrheqMpmpc9t2rZ\r
+       HM2aEXPN5cuWA1N7LDweNvT4vevNDFztsfXf65uuNQdfXSreojljBc+nsEIz35t8QU/spQUj\r
+       21LFDMKmfW/fmXNtU+Jq+R8fJ1RNySl/mH3r1trzvbOVpfhCkhY857reqsRSnJFoqMVcVJwI\r
+       AJUR5Ar2AgAA\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 22 Apr 2012 18:07:01 -0000\r
+\r
+On Sun, 22 Apr 2012, Justus Winter <4winter@informatik.uni-hamburg.de> wrote:\r
+> Formerly notmuch_database_close closed the xapian database and\r
+> destroyed the talloc structure associated with the notmuch database\r
+> object. Split notmuch_database_close into notmuch_database_close and\r
+> notmuch_database_destroy.\r
+>\r
+> This makes it possible for long running programs to close the xapian\r
+> database and thus release the lock associated with it without\r
+> destroying the data structures obtained from it.\r
+>\r
+> This also makes the api more consistent since every other data\r
+> structure has a destructor function.\r
+>\r
+> Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>\r
+\r
+Other than my comments comment, this series LGTM.  I think adding those\r
+comments should also address Felipe's question.\r