summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
b8da9f6)
Do not read latch twice, as it may end up being
cleared asynchronously. This is a typo, as the reuse
is exactly why we read the latch into a local variable.
Change-Id: If90bd157be6e20d69f158bc749f163c1008541a4
Signed-off-by: Robert Varga <rovarga@cisco.com>
// and force release of locks.
final CountDownLatch local = latch;
if (local != null) {
// and force release of locks.
final CountDownLatch local = latch;
if (local != null) {
- throw new InversibleLockException(latch);
+ throw new InversibleLockException(local);
}
// No latch present: retry optimistic lock
}
// No latch present: retry optimistic lock