]> source.dussan.org Git - jgit.git/commit
Fix inProcessPackedRefsLock not shared with copies of the instance 82/201682/2
authorNasser Grainawi <quic_nasserg@quicinc.com>
Tue, 2 May 2023 22:30:44 +0000 (16:30 -0600)
committerNasser Grainawi <quic_nasserg@quicinc.com>
Tue, 2 May 2023 23:14:52 +0000 (17:14 -0600)
commit06cfebd066c9d62c9cb5258343fa566f788c1fec
tree90636d706a8a32acbcc6056369bc56ad2cec6eb8
parent140a8b365aa75a2dc488a221760f513df5232c1c
Fix inProcessPackedRefsLock not shared with copies of the instance

The in process lock is intended to manage contention on locking the
packed-refs file within a single process without acquiring the file
system lock. Not sharing it across RefDirectory instances of the same
repository undermines that intent and results in more contention at the
file system level.

Change-Id: I68f11856aa0b4b1524f43554d7391a322a0a6897
Signed-off-by: Nasser Grainawi <quic_nasserg@quicinc.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java