BUG 5979 - enforce cursors are closed on transaction submit
[mdsal.git] / dom / mdsal-dom-inmemory-datastore / src / main / java / org / opendaylight / mdsal / dom / store / inmemory / ShardDataModification.java
index 5840e9b6df5dc0ff13d25d6b00cb1705bba9d361..a2e169a2b5170868cae332a7420736c84ff5e971 100644 (file)
@@ -73,4 +73,10 @@ final class ShardDataModification extends WriteableNodeWithSubshard {
         return rootModification;
     }
 
+    public void closeTransactions() {
+        for (final ForeignShardModificationContext childShard : childShards.values()) {
+            childShard.closeForeignTransaction();
+        }
+    }
+
 }
\ No newline at end of file