From: Carl Worth Date: Sat, 9 Jan 2010 19:13:12 +0000 (-0800) Subject: lib: Split the database upgrade into two phases for safer operation. X-Git-Tag: 0.1~146 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=d12801c8b4d04a50fcb912b75017244fb09658e8;hp=d12801c8b4d04a50fcb912b75017244fb09658e8 lib: Split the database upgrade into two phases for safer operation. 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. ---