Bump MDSAL to 4.0.0
[bgpcep.git] / data-change-counter / src / main / java / org / opendaylight / protocol / data / change / counter / TopologyDataChangeCounter.java
index 27c33c176c0d1a4d2d9c4f96e4c357533fb47b04..0fe99669d07d0e8d22b30de27716b8dbd07b9e79 100644 (file)
@@ -52,7 +52,7 @@ final class TopologyDataChangeCounter implements ClusteredDataTreeChangeListener
 
     TopologyDataChangeCounter(final DataBroker dataBroker, final String counterId, final String topologyName) {
         this.dataBroker = dataBroker;
-        this.transactionChain = this.dataBroker.createTransactionChain(this);
+        this.transactionChain = this.dataBroker.createMergingTransactionChain(this);
         this.counterId = counterId;
         this.counterInstanceId = InstanceIdentifier.builder(DataChangeCounter.class)
                 .child(Counter.class, new CounterKey(this.counterId)).build();
@@ -109,7 +109,7 @@ final class TopologyDataChangeCounter implements ClusteredDataTreeChangeListener
         LOG.warn("Transaction chain failure. Transaction: {}", transaction, cause);
         if (!closed.get()) {
             this.transactionChain.close();
-            this.transactionChain = dataBroker.createTransactionChain(this);
+            this.transactionChain = dataBroker.createMergingTransactionChain(this);
         }
     }