From cbdf62321157ceec75bd5d1eeca3f4ea4c18c329 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Wed, 13 Nov 2013 19:02:42 +0200 Subject: [PATCH] compactor adjustments v2 --- c9/2922c1c1e6964152f9ed5d878cda676bc7011b | 65 +++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 c9/2922c1c1e6964152f9ed5d878cda676bc7011b diff --git a/c9/2922c1c1e6964152f9ed5d878cda676bc7011b b/c9/2922c1c1e6964152f9ed5d878cda676bc7011b new file mode 100644 index 000000000..1deebb76f --- /dev/null +++ b/c9/2922c1c1e6964152f9ed5d878cda676bc7011b @@ -0,0 +1,65 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 4A3E3429E38 + for ; Wed, 13 Nov 2013 09:03:09 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 27Qf7CeJtdkA for ; + Wed, 13 Nov 2013 09:03:03 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id AF265431FD9 + for ; Wed, 13 Nov 2013 09:02:57 -0800 (PST) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id DA75110009D; Wed, 13 Nov 2013 19:02:49 +0200 (EET) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: compactor adjustments v2 +Date: Wed, 13 Nov 2013 19:02:42 +0200 +Message-Id: <1384362167-12740-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.8.0 +Cc: tomi.ollila@iki.fi +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 13 Nov 2013 17:03:09 -0000 + +This is v2 of id:1384192538-15291-1-git-send-email-tomi.ollila@iki.fi + +Changes include: + tidy formatting (i.e. "uncrustifying") on related code + catching Xapian::Error (always) + +The tests done in id:m2fvr1tpkf.fsf@guru.guru-group.fi were redone +with one extra (*) -- results same. Automatic tests pass. + +(*) + +$ mkdir xapian.compact +$ touch xapian.compact/file +$ chmod 000 xapian.compact +$ notmuch compact +Compacting database... +compacting table postlist +Error while compacting: Couldn't open base /path/to/.notmuch/xapian.compact/postlist.baseA to write: Permission denied +Compaction failed: A Xapian exception occurred +zsh: exit 1 ./notmuch compact + + + -- 2.26.2