database error
[notmuch-archives.git] / b7 / bd1ec0c6d999d42d7dbd41f0cd9409c291d3e7
1 Return-Path: <aclements@csail.mit.edu>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id C5F01431FB6\r
6         for <notmuch@notmuchmail.org>; Sun,  5 Oct 2014 16:20:18 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id wEFeMyPTomFy for <notmuch@notmuchmail.org>;\r
16         Sun,  5 Oct 2014 16:20:13 -0700 (PDT)\r
17 Received: from outgoing.csail.mit.edu (outgoing.csail.mit.edu [128.30.2.149])\r
18         by olra.theworths.org (Postfix) with ESMTP id 49C6C431FAE\r
19         for <notmuch@notmuchmail.org>; Sun,  5 Oct 2014 16:20:13 -0700 (PDT)\r
20 Received: from [104.131.20.129] (helo=awakeningjr)\r
21         by outgoing.csail.mit.edu with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)\r
22         (Exim 4.72) (envelope-from <aclements@csail.mit.edu>)\r
23         id 1Xav61-0000LQ-4R; Sun, 05 Oct 2014 19:20:09 -0400\r
24 Received: from amthrax by awakeningjr with local (Exim 4.84)\r
25         (envelope-from <aclements@csail.mit.edu>)\r
26         id 1Xav60-0004dB-LS; Sun, 05 Oct 2014 19:20:08 -0400\r
27 Date: Sun, 5 Oct 2014 19:20:08 -0400\r
28 From: Austin Clements <aclements@csail.mit.edu>\r
29 To: David Bremner <david@tethera.net>\r
30 Subject: Re: [PATCH 02/11] lib: Refactor _notmuch_database_link_message\r
31 Message-ID: <20141005232008.GB7970@csail.mit.edu>\r
32 References: <1412345958-8278-1-git-send-email-aclements@csail.mit.edu>\r
33         <1412345958-8278-3-git-send-email-aclements@csail.mit.edu>\r
34         <87k34fot7d.fsf@maritornes.cs.unb.ca>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain; charset=us-ascii\r
37 Content-Disposition: inline\r
38 In-Reply-To: <87k34fot7d.fsf@maritornes.cs.unb.ca>\r
39 User-Agent: Mutt/1.5.23 (2014-03-12)\r
40 Cc: notmuch@notmuchmail.org\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 05 Oct 2014 23:20:18 -0000\r
54 \r
55 Quoth David Bremner on Oct 05 at  9:45 am:\r
56 > Austin Clements <aclements@csail.mit.edu> writes:\r
57 > > +    void *local = talloc_new (NULL);\r
58\r
59 > What's the advantage of using a local talloc context here? Is this just\r
60 > an optimization?\r
61 \r
62 There are a few allocations that wind up going in to this local\r
63 context because of the call to _consume_metadata_thread_id, so it's\r
64 more convenient to free this one context on return from\r
65 _notmuch_database_link_message than to worry about tracking these\r
66 various allocations.\r