Close read-only transaction in BgpDeployerImpl 20/97820/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Oct 2021 12:47:03 +0000 (14:47 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 21 Oct 2021 12:54:59 +0000 (12:54 +0000)
commitb0c2dd558aaf3c8f1077c0551b29f6ca711d408f
tree50dc9d94456ebd72703b526d6ad863712a3c997c
parentf26ec5b816c235a12a886ba627c344b3cb036620
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