Use ReusableNormalizedNodePruner in PruningDataTreeModification 94/81294/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Mar 2019 12:01:48 +0000 (13:01 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 29 Mar 2019 10:45:27 +0000 (10:45 +0000)
commitef8af945bb69b7ab16c9a536cca57a2ae58c9d28
tree754be122a08d3b8fe495de363e698225569a5cee
parentdd022cfb43e89f3f8c18c872ae2a7e55f11350cc
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