BUG-6111: fix a thinko 28/43628/1
authorRobert Varga <rovarga@cisco.com>
Wed, 10 Aug 2016 09:24:31 +0000 (11:24 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 10 Aug 2016 13:46:31 +0000 (13:46 +0000)
Failure to initialize isOpen leads to the codepath never being
triggered.

Change-Id: I20f1b76c9ada581edc1c92c61447fd97d0d1b2ea
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 01ca6a43914fb8dd27a24da7476b835fc2570e40)

opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/PingPongTransactionChain.java

index cbb5b0b..6097b38 100644 (file)
@@ -436,7 +436,7 @@ public final class PingPongTransactionChain implements DOMTransactionChain {
     public DOMDataReadWriteTransaction newReadWriteTransaction() {
         final PingPongTransaction tx = allocateTransaction();
         final DOMDataReadWriteTransaction ret = new ForwardingDOMDataReadWriteTransaction() {
-            private boolean isOpen;
+            private boolean isOpen = true;
 
             @Override
             protected DOMDataReadWriteTransaction delegate() {