Re: [PATCH v3 3/5] compact: preserve backup database until compacted database is in place

Subject: Re: [PATCH v3 3/5] compact: preserve backup database until compacted database is in place

Date: Tue, 19 Nov 2013 20:59:26 -0400

To: Tomi Ollila, notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: David Bremner


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

> It is less error prone and window of failure opportunity is smaller
> if the old (backup) database is always renamed (instead of sometimes
> rmtree'd) before new (compacted) database is put into its place.
> Finally rmtree() old database in case old database backup is not kept.

pushed, 

d

Thread: