Bug-6468: Duplicate cleanup and connected-peer-counter decrement during BGP session... 11/44811/2
authorAjay <ajayl.bro@gmail.com>
Mon, 29 Aug 2016 20:56:34 +0000 (20:56 +0000)
committerMilos Fabian <milfabia@cisco.com>
Wed, 31 Aug 2016 14:20:46 +0000 (14:20 +0000)
commit78b58179e6ef65fae98b134112e7aa0bbe7e1a91
tree631c139c7fb7274501536b62129d831714f5f734
parent5b60a2503c6600bf207582f71c7a7b1de656f295
Bug-6468: Duplicate cleanup and connected-peer-counter decrement during BGP session cleanup
1. Add synchronized to BGPPeer#releaseConnection to avoid race condition
2. Add check to BGPSessionImpl#closeWithoutMessage so that it's body does not
   get executed twice, even if it does get called twice during session cleanup

Change-Id: I78d89de2c9c0fa8968bbb6a019d568a539a8c5f7
Signed-off-by: Ajay <ajayl.bro@gmail.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPSessionImpl.java