Optimize reachability topology builder 56/13756/1
authorRobert Varga <rovarga@cisco.com>
Fri, 19 Dec 2014 12:37:58 +0000 (13:37 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 19 Dec 2014 12:37:58 +0000 (13:37 +0100)
commitf7ce6572aa3bd91a377accd9999a4a789a11596b
tree997e09ae1e57dc774e77bba282b72a8fbc8abf0d
parent6fac764e6d342cec6ab409dacefa0e402d16e1e7
Optimize reachability topology builder

Instead of performing a read(), which forces a temporary commit within
the transaction, issue a merge to ensure the node is present. Also
optimize the delete case very slightly, by reading one level deeper.

Change-Id: I5cf0aa27b03b9782297bae59268389529e805fae
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/topology-provider/src/main/java/org/opendaylight/bgpcep/bgp/topology/provider/AbstractReachabilityTopologyBuilder.java