]> git.notmuchmail.org Git - notmuch/commit
lib: Reorganize upgrade around document types
authorAustin Clements <amdragon@mit.edu>
Mon, 25 Aug 2014 17:26:05 +0000 (13:26 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 30 Aug 2014 18:24:11 +0000 (11:24 -0700)
commite0635bd003244ae8b88a885e2e5f23c9104ed164
tree8c2e9059732e82d0c8755213353f8368d42f4e16
parent48db8c8b602176d86b6c1e2bd1f18648bebd0b68
lib: Reorganize upgrade around document types

Rather than potentially making multiple passes over the same type of
data in the database, reorganize upgrade around each type of data that
may be upgraded.  This eliminates code duplication, will make
multi-version upgrades faster, and will let us improve progress
reporting.
lib/database.cc