Bug 5485: Improve DataTreeModification pruning on recovery
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / SimpleShardDataTreeCohort.java
index 4860e38e8fdffb7e61a121c1340915d28f3b1ce8..7f1c6a0cb2e578670c5c880453cc03a1a8117832 100644 (file)
@@ -85,7 +85,7 @@ final class SimpleShardDataTreeCohort extends ShardDataTreeCohort {
     private DataTreeModification dataTreeModification() {
         DataTreeModification dataTreeModification = transaction;
         if(transaction instanceof PruningDataTreeModification){
-            dataTreeModification = ((PruningDataTreeModification) transaction).getDelegate();
+            dataTreeModification = ((PruningDataTreeModification) transaction).getResultingModification();
         }
         return dataTreeModification;
     }