This commit is contained in:
Joey Hess 2019-05-06 14:58:59 -04:00
parent 65a82e0d27
commit 4bc99e4c21
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,7 @@
[[!comment format=mdwn
username="joey"
subject="""comment 4"""
date="2019-05-06T18:46:21Z"
content="""
[[todo/only_allow_one_git_queue_to_be_flushed_at_a_time]]
"""]]

View file

@ -0,0 +1,11 @@
A git queue is used when doing things that update .git/index.
If two git-annex processes are both building up a git queue and happen
to flush at the same time, one will fail due to git's locking of the index
file.
This doesn't affect multiple threads with --jobs; while threads have
individual git queues, inter-thread locking allows only one to flush
at a time. That locking is handled in `Annex.Queue.flush'` using a
semaphore.
Seems that it would be better to use a lock file. --[[Joey]]