Re: [PATCH v3 3/5] compact: preserve backup database until compacted database is...
authorDavid Bremner <david@tethera.net>
Wed, 20 Nov 2013 00:59:26 +0000 (20:59 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:58:24 +0000 (09:58 -0800)
d3/b1deb4a54d38e231d5c82c51446da314afc1f3 [new file with mode: 0644]

diff --git a/d3/b1deb4a54d38e231d5c82c51446da314afc1f3 b/d3/b1deb4a54d38e231d5c82c51446da314afc1f3
new file mode 100644 (file)
index 0000000..81c1a65
--- /dev/null
@@ -0,0 +1,64 @@
+Return-Path: <david@tethera.net>\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 E5DA1431FC3\r
+       for <notmuch@notmuchmail.org>; Tue, 19 Nov 2013 16:59:40 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 oCDI+zPnPN6J for <notmuch@notmuchmail.org>;\r
+       Tue, 19 Nov 2013 16:59:33 -0800 (PST)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5FC63429E3B\r
+       for <notmuch@notmuchmail.org>; Tue, 19 Nov 2013 16:59:31 -0800 (PST)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+       (envelope-from <david@tethera.net>)\r
+       id 1Viw8g-00076Q-Ee; Tue, 19 Nov 2013 20:59:30 -0400\r
+Received: (nullmailer pid 24272 invoked by uid 1000); Wed, 20 Nov 2013\r
+       00:59:26 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v3 3/5] compact: preserve backup database until compacted\r
+       database is in place\r
+In-Reply-To: <1384466607-28298-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <id:1384362167-12740-1-git-send-email-tomi.ollila@iki.fi>\r
+       <1384466607-28298-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.16+171~g5262be6 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 19 Nov 2013 20:59:26 -0400\r
+Message-ID: <878uwjvqfl.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: tomi.ollila@iki.fi\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, 20 Nov 2013 00:59:41 -0000\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+> It is less error prone and window of failure opportunity is smaller\r
+> if the old (backup) database is always renamed (instead of sometimes\r
+> rmtree'd) before new (compacted) database is put into its place.\r
+> Finally rmtree() old database in case old database backup is not kept.\r
+\r
+pushed, \r
+\r
+d\r