[PATCH v2 10/14] lib: Reorganize upgrade around document types

2014-07-29 Thread Austin Clements
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

[PATCH v2 10/14] lib: Reorganize upgrade around document types

2014-07-29 Thread Austin Clements
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