Improve global config application 33/82233/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 21 May 2019 11:37:51 +0000 (13:37 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 24 May 2019 12:10:11 +0000 (14:10 +0200)
commit9bb9a8a0af94da42a2b1a90c38fbf37e68e36ef8
tree578bd3fd58449f342f0d57f65007a0fca59bbc8c
parent268bde77fa1196a742565202783d5071afa833bf
Improve global config application

Rather than iterating through all reported changes and publishing
configuration for each of them, acquire the last component and
publish only that.

This leads to faster DTCL (as not all roots need to be acquired)
as well as better atomicity, as readers do not observe intermediate
state if there are multiple changes reported.

Change-Id: I5805566291ea6ebdd6a6c49594fded5aa4243bcb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 3c9bfd451c6b862079a1eb5bb31ec98150b1d18f)
netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallHomeAuthProviderImpl.java