Make sure we close read-only transactions 86/19786/2
authorRobert Varga <rovarga@cisco.com>
Thu, 7 May 2015 09:45:32 +0000 (11:45 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 7 May 2015 11:22:32 +0000 (11:22 +0000)
commit2190b2ce0cfc448d5a9ea6af4978e4167734dad7
treefa394804a285fef37a0932eab300413482e17eda
parent583c72c5432d43e563d58fabb122f28db0621339
Make sure we close read-only transactions

Transactions are resources, so they should be closed when no longer in
use.

Change-Id: I45a8a89f56b61cb12addbdb3349ab408c8aa14ed
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/RIBImpl.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/PeerTest.java