]> git.notmuchmail.org Git - notmuch/commitdiff
lib: Split the database upgrade into two phases for safer operation.
authorCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2010 19:13:12 +0000 (11:13 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 9 Jan 2010 19:13:12 +0000 (11:13 -0800)
The first phase copies data from the old format to the new format
without deleting anything. This allows an old notmuch to still use the
database if the upgrade process gets interrupted. The second phase
performs the deletion (after updating the database version number). If
the second phase is interrupted, there will be some unused data in the
database, but it shouldn't cause any actual harm.


No differences found