unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Ben Gamari <bgamari.foss@gmail.com>
To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
Subject: Re: [PATCH 3/3] compact: Provide user with more error feedback
Date: Mon, 28 Oct 2013 18:12:33 -0400	[thread overview]
Message-ID: <87k3gxdoz2.fsf@gmail.com> (raw)
In-Reply-To: <m2vc0i75cx.fsf@guru.guru-group.fi>

[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]

Tomi Ollila <tomi.ollila@iki.fi> writes:

> On Sun, Oct 27 2013, Ben Gamari <bgamari.foss@gmail.com> wrote:
>
>> Provide instructions on what to do when we couldn't move the compacted
>> database into place.
>>
>> Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
>> ---
>>  lib/database.cc | 18 +++++++++++++++++-
>>  1 file changed, 17 insertions(+), 1 deletion(-)
>>
>> diff --git a/lib/database.cc b/lib/database.cc
>> index 57c2292..6f9fed1 100644
>> --- a/lib/database.cc
>> +++ b/lib/database.cc
>> @@ -938,7 +938,23 @@ notmuch_database_compact (const char* path,
>>      }
>>  
>>      if (rename(compact_xapian_path, xapian_path)) {
>> -	fprintf (stderr, "Error moving compacted database\n");
>> +	fprintf (stderr, "Error moving compacted database into place: %s\n", strerror(errno));
>> +	fprintf (stderr, "\n");
>> +	fprintf (stderr, "Encountered error %s while moving the compacted database,\n",
>> +		 strerror(errno));
>
> You probably missed my comments in id:m2d2mz7qv7.fsf@guru.guru-group.fi ?
>
Indeed I did. My apologies. New set coming.

Cheers,

- Ben

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

  reply	other threads:[~2013-10-28 22:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-27 20:30 [PATCH 1/3] test: Add compact test Ben Gamari
2013-10-27 20:30 ` [PATCH 2/3] compact: Give user more feedback on failure renaming Ben Gamari
2013-10-27 20:30 ` [PATCH 3/3] compact: Provide user with more error feedback Ben Gamari
2013-10-27 21:48   ` Tomi Ollila
2013-10-28 22:12     ` Ben Gamari [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-10-15  1:13 [PATCH] Compact tests and error handling Ben Gamari
2013-10-15  1:13 ` [PATCH 3/3] compact: Provide user with more error feedback Ben Gamari
2013-10-20 18:13   ` Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3gxdoz2.fsf@gmail.com \
    --to=bgamari.foss@gmail.com \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).