git-annex/Upgrade
Joey Hess 5a98f2d509
avoid creating content directory when locking content
If the content directory does not exist, then it does not make sense to
lock the content file, as it also does not exist, and so it's ok for the
lock operation to fail.

This avoids potential races where the content file exists but is then
deleted/renamed, while another process sees that it exists and goes to
lock it, resulting in a dangling lock file in an otherwise empty object
directory.

Also renamed modifyContent to modifyContentDir since it is not only
necessarily used for modifying content files, but also other files in
the content directory.

Sponsored-by: Dartmouth College's Datalad project
2022-05-16 12:34:56 -04:00
..
V5 avoid creating content directory when locking content 2022-05-16 12:34:56 -04:00
V0.hs split upgrade into v9 and v10 2022-01-19 13:09:33 -04:00
V1.hs split upgrade into v9 and v10 2022-01-19 13:09:33 -04:00
V2.hs split upgrade into v9 and v10 2022-01-19 13:09:33 -04:00
V3.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
V4.hs split upgrade into v9 and v10 2022-01-19 13:09:33 -04:00
V5.hs split upgrade into v9 and v10 2022-01-19 13:09:33 -04:00
V6.hs split upgrade into v9 and v10 2022-01-19 13:09:33 -04:00
V7.hs split upgrade into v9 and v10 2022-01-19 13:09:33 -04:00
V8.hs enable filter.annex.process in v9 2022-01-21 13:11:18 -04:00
V9.hs don't fail git-annex upgrade to v10 2022-01-21 13:15:32 -04:00