BUG-5280: fix InversibleLock race 98/49698/1
authorRobert Varga <rovarga@cisco.com>
Wed, 21 Dec 2016 13:17:35 +0000 (14:17 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 21 Dec 2016 13:17:35 +0000 (14:17 +0100)
commitdf085d42892442a3bea3e72626c9476a14404316
tree51f7555170004670106033a8b679b1f9e005e20a
parentb8da9f6fa8bf4284805349f4638ebdadf169ff5f
BUG-5280: fix InversibleLock race

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>
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/InversibleLock.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.