diff options
author | Nasser Grainawi <quic_nasserg@quicinc.com> | 2024-01-25 18:59:15 -0700 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-02-13 22:37:28 +0100 |
commit | acf21c0bc6a63a3d20fca92757b992a1f2d55f41 (patch) | |
tree | 358570b1de147810adeb92cfe5e0e8d7067b5b67 /org.eclipse.jgit/resources/org | |
parent | 86ef2d5311d99fe1b2f4961608ec1ec5fd0ae3ea (diff) | |
download | jgit-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