Use ReusableNormalizedNodePruner in PruningDataTreeModification 58/81258/5
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Mar 2019 12:01:48 +0000 (13:01 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Mar 2019 15:02:52 +0000 (16:02 +0100)
commit8f30cbc0ba2676e883faadba10f757881983b2d0
tree848cab5150e4298005d54493c7c7b88a8e7de21b
parent7bef3c9e3f411d3e4abdb5ff43a618537cc9c936
Use ReusableNormalizedNodePruner in PruningDataTreeModification

Rather than instantiating a pruner for each invocation, keep an
instance around for reuse. In order to facilitate free-standing
modifications, we also keep a reference to the DataSchemaContextTree
bound our current SchemaContext.

JIRA: CONTROLLER-1887
Change-Id: I5d310b12feb1ff46dc2af0e67294a925d48a4957
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/PruningDataTreeModification.java