Re: [PATCH v6 00/17] Fix 'notmuch new' atomicity issues
authorAustin Clements <amdragon@mit.edu>
Wed, 22 Jun 2011 19:39:27 +0000 (15:39 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:40 +0000 (09:38 -0800)
39/8c38046536045d7722372b0f00993a7308f463 [new file with mode: 0644]

diff --git a/39/8c38046536045d7722372b0f00993a7308f463 b/39/8c38046536045d7722372b0f00993a7308f463
new file mode 100644 (file)
index 0000000..4a912a4
--- /dev/null
@@ -0,0 +1,134 @@
+Return-Path: <amdragon@gmail.com>\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 60B72429E25\r
+       for <notmuch@notmuchmail.org>; Wed, 22 Jun 2011 12:39:30 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
+       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 qPXof-A78BRa for <notmuch@notmuchmail.org>;\r
+       Wed, 22 Jun 2011 12:39:28 -0700 (PDT)\r
+Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
+       [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5375B431FD0\r
+       for <notmuch@notmuchmail.org>; Wed, 22 Jun 2011 12:39:28 -0700 (PDT)\r
+Received: by qwb7 with SMTP id 7so691002qwb.26\r
+       for <notmuch@notmuchmail.org>; Wed, 22 Jun 2011 12:39:27 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:mime-version:sender:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
+       :content-transfer-encoding;\r
+       bh=LXT+TmYt2A7lHUJ4mjKwmCyYb/bDcup92phrSeyCfew=;\r
+       b=M14HQCKGIgdiMvt4VgnCpXtnM2cJ5BkG5IOz+pnbt4Q9nUG5O7hhd+NcojwnA7jyVy\r
+       KZ6vBXUuJndSiCTyyq3JUIIiOF9Tlo2r82dpGMNMMe8cpKHefuqRh2fIeBcO5EKFIeW7\r
+       Wc5xgyS5Aj8+HfrRVamDmAD9woCbwPQeIm1sU=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=mime-version:sender:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
+       :content-transfer-encoding;\r
+       b=jdMSvh8MH8xVZWZyl5m6aF+63Ee2LOf2OLHj73blbT4M1OgIN15mobB+QLjwcUMCYH\r
+       rZFFVPgX5Dd+w2s0Kk81FGnX+hR38Z8kA4Y/WAntVwFa75IP/5QYILkkRmuuQOoyYfgi\r
+       ZlZqAmNAOOdAE1I/z3sk+UwwcSG3WCZKFSr5c=\r
+MIME-Version: 1.0\r
+Received: by 10.229.18.67 with SMTP id v3mr910996qca.100.1308771567264; Wed,\r
+       22 Jun 2011 12:39:27 -0700 (PDT)\r
+Sender: amdragon@gmail.com\r
+Received: by 10.229.32.197 with HTTP; Wed, 22 Jun 2011 12:39:27 -0700 (PDT)\r
+In-Reply-To: <1307822683-848-1-git-send-email-amdragon@mit.edu>\r
+References: <87ei34rnc5.fsf@yoom.home.cworth.org>\r
+       <1307822683-848-1-git-send-email-amdragon@mit.edu>\r
+Date: Wed, 22 Jun 2011 15:39:27 -0400\r
+X-Google-Sender-Auth: z0voCGdMArVH8JV52YgMg7CdD1s\r
+Message-ID: <BANLkTimeWnn5YtKjarFB8f8Fowvz0PxK2Q@mail.gmail.com>\r
+Subject: Re: [PATCH v6 00/17] Fix 'notmuch new' atomicity issues\r
+From: Austin Clements <amdragon@mit.edu>\r
+To: Carl Worth <cworth@cworth.org>\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org\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: Wed, 22 Jun 2011 19:39:30 -0000\r
+\r
+Ping.\r
+\r
+On Sat, Jun 11, 2011 at 4:04 PM, Austin Clements <amdragon@mit.edu> wrote:\r
+> Here's the reworked patch series that uses atomic sections more\r
+> heavily rather than changing the removal API. =A0This is atomic-new-v6\r
+> on http://awakening.csail.mit.edu/git/notmuch.git .\r
+>\r
+> (I was planning to make this series on Monday while stuck on a plane,\r
+> but an opportunity presented itself when I needed something better to\r
+> do than fix the sink. =A0As a result, if you can look over this before\r
+> Monday, I can use that time to address any further comments.)\r
+>\r
+> The beginning of the sequence---"test: Fix message when skipping\r
+> test_expect_equal* tests" through "new: Defer updating directory\r
+> mtimes until the end."---has not changed besides than the minor things\r
+> you pointed out earlier. =A0Here's a quick summary of the differences in\r
+> the rest of the sequence:\r
+>\r
+> lib: Add notmuch_database_{begin,end}_atomic.\r
+> =A0Rebased but otherwise identical.\r
+>\r
+> lib: Add support for nested atomic sections.\r
+> =A0New.\r
+>\r
+> lib: Indicate if there are more filenames after removal.\r
+> =A0Rebased but otherwise identical.\r
+>\r
+> lib: Remove message document directly after removing the last file\r
+> name.\r
+> =A0New. =A0Supersedes the patches that rewrote\r
+> =A0notmuch_database_remove_message and made sync delete messages.\r
+>\r
+> lib: Add an API to find a message by filename.\r
+> =A0Culled from "lib: Add API's to find by filename and ..." in the old\r
+> =A0series. =A0What I kept is identical.\r
+>\r
+> lib: Wrap notmuch_database_add_message in an atomic section.\r
+> =A0New.\r
+>\r
+> new: Cleanup. Put removed/renamed message count in add_files_state_t.\r
+> new: Cleanup. De-duplicate file name removal code.\r
+> =A0Both new, but closely related to previous remove_filename patch.\r
+>\r
+> new: Synchronize maildir flags eagerly.\r
+> =A0New, but very closely related to previous patch of the same name.\r
+> =A0This patch is simpler now because of the previous two cleanups.\r
+>\r
+> new: Wrap adding and removing messages in atomic sections.\r
+> =A0Rebased and added an atomic section around removal.\r
+>\r
+> lib: Improve notmuch_database_{add,remove}_message documentation.\r
+> =A0New.\r
+>\r
+> Ultimately, I still think the existing removal API is weird because it\r
+> forces you to do things like lookup a message by file name just in\r
+> case you need that message object after removal tells you that it\r
+> didn't actually remove the message. =A0But I don't know what to do about\r
+> it that isn't equally weird.\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+>\r