]> dgit.raspbian.org Git - git-annex.git/commit
fix inverted logic
authorJoey Hess <joeyh@joeyh.name>
Thu, 13 Jan 2022 17:28:57 +0000 (13:28 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 13 Jan 2022 17:58:31 +0000 (13:58 -0400)
commit3d7933f12470ad6d62704a9569f447f66492d481
treeb8ee662602f26855938ab47cb4d3de512b6b4ec5
parent731b1ecf8790e62c2f02ce36bff97b27049bb7fd
fix inverted logic

Now the content lock files are used in v9. However, I am not yet certian
they are correct. In particular, lockContentUsing deletes
the content lock file on unlock. But what if there's a shared lock
by another process? That seems like it would discard that lock too!

(Windows seems like it would not have the same problem, because as the
comment in there says, "Can't delete a locked file on Windows".
So if another process has a shared lock, removing it presumably fails.)

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