Use CommitInfo in AsyncNotifyingSettableFuture 51/100051/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 9 Mar 2022 18:04:16 +0000 (19:04 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 9 Mar 2022 18:04:16 +0000 (19:04 +0100)
commit4d2bbed60d5e0e1ea23a994e87b306416a3e51eb
tree68992fa34a4690060ed44bdaebcae8bbacb576e7
parent4e5083390e8f3076b0c6cd9fc43f656c4a109c1d
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>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/ConcurrentDOMDataBroker.java