Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[egit-dev] Concurrent access to Git Index - synchronization required?

Hi,
 
in Bug 311051 a Branch operation failed due to parallel access to the GIT index file by 2 threads:
 
Thread 1: Git decorator reads the index using DirCache.readFrom
Thread 2: BranchOperation fails in GitIndex.write because it cannot delete the index file
 
Bug 308506 seems to be a similar problem.
 
My question is: do we need synchronization for accessing the index file?
One could e.g. think of introducing a read/write lock (ReadWriteLock) to protect access to the index file.
 
Comments?
 
--
Jens
 
 

Back to the top