| commit | d9f75e8bb2af7307ce1d6e0a7376eb5ebe583ae4 | [log] [tgz] |
|---|---|---|
| author | Matthias Sohn <matthias.sohn@sap.com> | Wed Feb 22 20:36:39 2023 +0100 |
| committer | Matthias Sohn <matthias.sohn@sap.com> | Wed Feb 22 20:38:43 2023 +0100 |
| tree | cc84b572f95442358eac25467376a6fa4ecebc78 | |
| parent | 1691e38779d1f1d25cc6c388a91a82667ff12b34 [diff] |
If tryLock fails to get the lock another gc has it Change-Id: Ifd3bbcc5e0591883b774d23256949a83010ea134
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java index 7feb506..f25feee 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java
@@ -1650,7 +1650,7 @@ boolean lock() throws IOException { channel = f.getChannel(); lock = channel.tryLock(); if (lock == null || !lock.isValid()) { - failedToLock(); + gcAlreadyRunning(); return false; } channel.write(ByteBuffer