NormalizedNodeAggregator should also report empty 79/100479/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Apr 2022 20:23:33 +0000 (22:23 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Apr 2022 20:26:06 +0000 (22:26 +0200)
commit1d5ca4009be6c61d7b61989799037ad8f1ab7a75
tree135940109e60729c96f622630c8857361348780f
parentc763a16f9cd72bb4f27997f301f163b83d470a24
NormalizedNodeAggregator should also report empty

DataTree root is always present as of now, which means that even if we
pretend there is no result, the result of aggregation is non-empty.

Fix NormalizedNodeAggregator to check whether there was any operation
applied before running actual transaction.

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