Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / af / 949feb5b41c402e76fb3d4febc45f96e9fac27
1 Return-Path: <jani@nikula.org>\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 10BD3431FC4\r
6         for <notmuch@notmuchmail.org>; Thu, 14 Nov 2013 06:09:56 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 oUcqTd625Y0W for <notmuch@notmuchmail.org>;\r
16         Thu, 14 Nov 2013 06:09:48 -0800 (PST)\r
17 Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com\r
18         [209.85.214.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 1E051431FB6\r
21         for <notmuch@notmuchmail.org>; Thu, 14 Nov 2013 06:09:47 -0800 (PST)\r
22 Received: by mail-bk0-f51.google.com with SMTP id my10so407224bkb.24\r
23         for <notmuch@notmuchmail.org>; Thu, 14 Nov 2013 06:09:44 -0800 (PST)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=1e100.net; s=20130820;\r
26         h=x-gm-message-state:from:to:cc:subject:in-reply-to:references\r
27         :user-agent:date:message-id:mime-version:content-type;\r
28         bh=+9slkSVoKsNFbx2kg8ngGOHAODWk9nzr9Rls18y1Ee4=;\r
29         b=l24YmJkogebpriTGUK2RczN8ZBghGmto+cCqlU40d95jt/iMrzsHd8sqgmMExoQmrh\r
30         dG2uOuOceB/3upWu0VMOzmlV7rjdvruJYLTJWtUcn6NLfOv0+4q3XMEwmtBqsEh8ll2t\r
31         Vsdf3rMmTMiEeNBR+AjyTszyWjHpdqiiWh6mpeRzpD0wS5+BevRifwjs35S68+2vcNIo\r
32         MWtwMklhILbOg2vz6l5kcCUpl0Eipe4FomlDix2175qiJacDbv6pqnS/50P1DDaSAHEw\r
33         UNPqhXSPwUUZlASkTuaY1+8vFDhYtKUQS7a5E/3X1CNqFCootyFpYPyZd925xDdjfo6E\r
34         RIMA==\r
35 X-Gm-Message-State:\r
36  ALoCoQlbFLnPJDOyMJE5lR114RFoyEHrcG8yU9tXQUCzuawoiXrKDwI3p3MNBLgjdIx/6NRprwzU\r
37 X-Received: by 10.204.68.142 with SMTP id v14mr1341100bki.18.1384437764452;\r
38         Thu, 14 Nov 2013 06:02:44 -0800 (PST)\r
39 Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
40         by mx.google.com with ESMTPSA id pn6sm3481861bkb.14.2013.11.14.06.02.42\r
41         for <multiple recipients>\r
42         (version=TLSv1.1 cipher=RC4-SHA bits=128/128);\r
43         Thu, 14 Nov 2013 06:02:43 -0800 (PST)\r
44 From: Jani Nikula <jani@nikula.org>\r
45 To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
46 Subject: Re: [PATCH v2 4/5] compact: unconditionally attempt to remove old wip\r
47         database compact directory\r
48 In-Reply-To: <1384362167-12740-5-git-send-email-tomi.ollila@iki.fi>\r
49 References: <1384362167-12740-1-git-send-email-tomi.ollila@iki.fi>\r
50         <1384362167-12740-5-git-send-email-tomi.ollila@iki.fi>\r
51 User-Agent: Notmuch/0.16+115~gd647c65 (http://notmuchmail.org) Emacs/23.2.1\r
52         (x86_64-pc-linux-gnu)\r
53 Date: Thu, 14 Nov 2013 15:02:27 +0100\r
54 Message-ID: <877gcbnkss.fsf@nikula.org>\r
55 MIME-Version: 1.0\r
56 Content-Type: text/plain; charset=us-ascii\r
57 Cc: tomi.ollila@iki.fi\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62         <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Thu, 14 Nov 2013 14:09:56 -0000\r
71 \r
72 On Wed, 13 Nov 2013, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
73 > In case previous notmuch compact has been interrupted there is old\r
74 > work-in-progress database compact directory partially filled. Remove\r
75 > it just before starting to fill the directory with new files.\r
76 > ---\r
77 >  lib/database.cc | 5 +++++\r
78 >  1 file changed, 5 insertions(+)\r
79 >\r
80 > diff --git a/lib/database.cc b/lib/database.cc\r
81 > index ee09c5e..4b5ac64 100644\r
82 > --- a/lib/database.cc\r
83 > +++ b/lib/database.cc\r
84 > @@ -920,6 +920,11 @@ notmuch_database_compact (const char *path,\r
85 >       goto DONE;\r
86 >      }\r
87 >  \r
88 > +    // Unconditionally attempt to remove old work-in-progress database (if any).\r
89 > +    // This is "protected" by database lock. If this fails due to write errors\r
90 > +    // (etc), the following code will fail and provide error message.\r
91 > +    (void) rmtree (compact_xapian_path);\r
92 \r
93 I thought we avoid using // comments. Otherwise LGTM.\r
94 \r
95 > +\r
96 >      try {\r
97 >       NotmuchCompactor compactor (status_cb, closure);\r
98 >  \r
99 > -- \r
100 > 1.8.3.1\r
101 >\r
102 > _______________________________________________\r
103 > notmuch mailing list\r
104 > notmuch@notmuchmail.org\r
105 > http://notmuchmail.org/mailman/listinfo/notmuch\r