Improved locking when multiple git-annex processes are writing to the .git/index file
This commit is contained in:
parent
4bc99e4c21
commit
b03e65d260
6 changed files with 18 additions and 21 deletions
|
@ -43,9 +43,7 @@ dupState = do
|
|||
st <- Annex.getState id
|
||||
return $ st
|
||||
{ Annex.workers = []
|
||||
-- each thread has its own repoqueue, but the repoqueuesem
|
||||
-- is shared to prevent more than one thread flushing its
|
||||
-- queue at the same time
|
||||
-- each thread has its own repoqueue
|
||||
, Annex.repoqueue = Nothing
|
||||
-- avoid sharing eg, open file handles
|
||||
, Annex.catfilehandles = M.empty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue