BUG-5280: fix InversibleLock race
[controller.git] / opendaylight / md-sal / cds-access-client / src / main / java / org / opendaylight / controller / cluster / access / client / InversibleLock.java
index ea4e581..08bc053 100644 (file)
@@ -45,7 +45,7 @@ public final class InversibleLock {
             // 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