Use ReusableNormalizedNodePruner in PruningDataTreeModification 04/81304/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Mar 2019 12:01:48 +0000 (13:01 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 29 Mar 2019 01:37:15 +0000 (02:37 +0100)
commit20eee8b7884529c8917b719dc1d09bf3e9ec93f1
tree209388d50dd649b583d3fbb49460239a0d82399f
parent2b1ecc8d060748d748e706729a5a711237adc1dc
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>
(cherry picked from commit 8f30cbc0ba2676e883faadba10f757881983b2d0)
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