diff options
Diffstat (limited to 'src/main/java/com/amazon')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/map/UpgradableLock.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/map/UpgradableLock.java b/src/main/java/com/amazon/carbonado/repo/map/UpgradableLock.java index 60c9bfa..1992515 100644 --- a/src/main/java/com/amazon/carbonado/repo/map/UpgradableLock.java +++ b/src/main/java/com/amazon/carbonado/repo/map/UpgradableLock.java @@ -475,6 +475,7 @@ class UpgradableLock<L> { return false;
}
if (!tryLockForWrite(locker)) {
+ unlockFromUpgrade(locker);
if ((timeout = unit.toNanos(timeout) - (System.nanoTime() - start)) <= 0) {
return false;
}
|