Use CommitInfo in AsyncNotifyingSettableFuture 30/100030/1
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:31 +0000 (21:45 +0000)
commit273f0efbc7f91224f4bc201497964639e902e086
tree4ade2981ed105623e452a9134f59257f69552c08
parent6fe3278a3a5421758cc49f7e65097887cd4a5c48
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