Close read-only transaction in BgpDeployerImpl 32/98032/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Oct 2021 12:47:03 +0000 (14:47 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Oct 2021 12:47:03 +0000 (14:47 +0200)
commit3dac04b4a2717d7ad218cc77f194c11e035b5d08
treefea1ef381a8f2d5fa8251d4b92e553cc57d4027e
parentc06d5991def1caace2ea6088921727d5bf98a5fe
Close read-only transaction in BgpDeployerImpl

We are not closing the transaction, which is rather inefficient. Fix
that through a simple try-with-resources.

Change-Id: I2cdfa734e83daef9a968031a289b6406eb031e4a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpDeployerImpl.java