]> dgit.raspbian.org Git - git-annex.git/commit
detect v10 upgrade while running
authorJoey Hess <joeyh@joeyh.name>
Fri, 21 Jan 2022 16:56:07 +0000 (12:56 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 21 Jan 2022 16:56:38 +0000 (12:56 -0400)
commitdc14221bc3b062220c9e8eb8ff628a8ca84d399c
treecf2c1032f3fac75fe1047e07d22de364f69a50f6
parent2002d16dc3bde9caf4383c6a85de2e9a7bab4890
detect v10 upgrade while running

Capstone of the v10 upgrade process.

Tested with a git-annex drop in a v8 repo that had a local v8 remote.
Upgrading the repo to v10 (with --force) immedaitely caused it to notice
and switch over to v10 locking. Upgrading the remote also caused it to
switch over when operating on the remote.

The InodeCache makes this fairly efficient, just an added stat call per
lock of an object file. After the v10 upgrade, there is no more
overhead.

Sponsored-by: Dartmouth College's Datalad project
Annex.hs
Annex/Content/Presence.hs