Use CommitInfo in AsyncNotifyingSettableFuture 31/100031/1 3.0.x
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 9 Mar 2022 18:04:16 +0000 (19:04 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 9 Mar 2022 21:45:43 +0000 (21:45 +0000)
commit5d5ff7ab21db868c22d1a24b378c633c4fd39aca
tree92ba95cc4bfbfb5b0b23de8f3d5bb26f0f035c2a
parent7f4bf3b36845ce8301a96e7ec54bc9ef5de8c287
Use CommitInfo in AsyncNotifyingSettableFuture

We are performing a future transformation which boils down to converting
a null (Void) into an CommitInfo.empty().

Rather than doing that, let's make sure AsyncNotifyingSettableFuture
results directly in CommitInfo, removing the need for transformation,
saving us an object allocation and a few CPU cycles.

Change-Id: I7e34ad5e24dc6470d16243dad5ce7ba7395c5397
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 4d2bbed60d5e0e1ea23a994e87b306416a3e51eb)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/ConcurrentDOMDataBroker.java