aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/resources/org
diff options
context:
space:
mode:
authorNasser Grainawi <quic_nasserg@quicinc.com>2024-01-25 18:59:15 -0700
committerMatthias Sohn <matthias.sohn@sap.com>2024-02-13 22:37:28 +0100
commitacf21c0bc6a63a3d20fca92757b992a1f2d55f41 (patch)
tree358570b1de147810adeb92cfe5e0e8d7067b5b67 /org.eclipse.jgit/resources/org
parent86ef2d5311d99fe1b2f4961608ec1ec5fd0ae3ea (diff)
downloadjgit-acf21c0bc6a63a3d20fca92757b992a1f2d55f41.tar.gz
jgit-acf21c0bc6a63a3d20fca92757b992a1f2d55f41.zip
RefDirectory: Do not unlock until after deleting loose ref
Fix a potential race condition where we would remove our loose ref lock file before deleting the loose ref itself. This race could result in the current thread deleting a loose ref newly written by another thread. Other callers seem to be following the correct pattern, but improve the method naming to try to help future callers. Change-Id: I80cebe4788edd855e15381336d980c41498fca80 Signed-off-by: Nasser Grainawi <quic_nasserg@quicinc.com>
Diffstat (limited to 'org.eclipse.jgit/resources/org')
0 files changed, 0 insertions, 0 deletions