Skip to content

Commit

Permalink
Make StateMachine and ShowCommand tasks mutually exclusive
Browse files Browse the repository at this point in the history
ShowCommand task inspects peer structures which could get modified at the
same by state machine task. e.g. LastEvent state (string). This can cause
data corruption and lead to crash

Change-Id: I4ac32c8ba72cb9151818c46e9ef2284f592a3d4d
Closes-Bug: 1606392
  • Loading branch information
ananth-at-camphor-networks committed Jul 25, 2016
1 parent 0cf0c01 commit ab51ef6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/control-node/control_node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ void ControlNode::SetDefaultSchedulingPolicy() {
TaskPolicy sm_policy = boost::assign::list_of
(TaskExclusion(scheduler->GetTaskId("bgp::Config")))
(TaskExclusion(scheduler->GetTaskId("bgp::PeerMembership")))
(TaskExclusion(scheduler->GetTaskId("bgp::ShowCommand")))
(TaskExclusion(scheduler->GetTaskId("bgp::RTFilter")));
for (int idx = 0; idx < scheduler->HardwareThreadCount(); ++idx) {
sm_policy.push_back(
Expand Down

0 comments on commit ab51ef6

Please sign in to comment.