v8 upgrade of keys db

Renamed the database to .git/annex/keysdb;
the old .git/annex/keys gets deleted during the upgrade.

It is possible that an old git-annex process is running during the
upgrade. If so, it will be able to continue using the old keys db until the
upgrade is complete, and then will presumably fail in some ugly way. Or
perhaps the upgrade will be unable to delete the open files on some
systems, and so fail with an ugly error message.

It's also possible for multiple processes to be running the upgrade
concurrently. That should be fine; they will both write the same
information into the keys db.

Other databases still need to be upgraded.
This commit is contained in:
Joey Hess 2019-11-06 15:37:18 -04:00
parent 09ee6b0ccb
commit dc9295017f
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 100 additions and 6 deletions

View file

@ -24,6 +24,7 @@ module Git.LsFiles (
Unmerged(..),
unmerged,
StagedDetails,
inodeCaches,
) where
import Common