Skip to content

Commit

Permalink
Fix concurrency annotation in BgpMembershipManager::RegisterRibIn
Browse files Browse the repository at this point in the history
Change-Id: I6dbecb036c86227771e8a9672879c27f37d82084
Partial-Bug: 1672512
  • Loading branch information
Nischal Sheth committed Mar 30, 2017
1 parent 7a9f37a commit 8aa2a2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bgp/bgp_membership.cc
Expand Up @@ -123,7 +123,8 @@ void BgpMembershipManager::Register(IPeer *peer, BgpTable *table,
// Synchronously register the IPeer to the BgpTable for RIBIN.
//
void BgpMembershipManager::RegisterRibIn(IPeer *peer, BgpTable *table) {
CHECK_CONCURRENCY("bgp::Config", "bgp::StateMachine", "xmpp::StateMachine");
CHECK_CONCURRENCY("bgp::Config", "bgp::ConfigHelper",
"bgp::StateMachine", "xmpp::StateMachine");

tbb::spin_rw_mutex::scoped_lock write_lock(rw_mutex_, true);
PeerRibState *prs = LocatePeerRibState(peer, table);
Expand Down

0 comments on commit 8aa2a2e

Please sign in to comment.