lib: Report progress for combined upgrade operation
authorAustin Clements <amdragon@mit.edu>
Mon, 25 Aug 2014 17:26:06 +0000 (13:26 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 30 Aug 2014 18:36:08 +0000 (11:36 -0700)
commit02fec226fcb02a5c784f4322365b979639b37c76
treedca1fc249fa906d5f1e5094a4065ff229681301e
parente0635bd003244ae8b88a885e2e5f23c9104ed164
lib: Report progress for combined upgrade operation

Previously, some parts of upgrade didn't report progress and for
others it was possible for the progress meter to restart at 0 part way
through the upgrade because each stage was reported separately.

Fix this by computing the total amount of work that needs to be done
up-front and updating completed work monotonically.
lib/database.cc