From ab51ef6acdb0e2292a9f7b8c85a45ade31f8efbc Mon Sep 17 00:00:00 2001 From: Ananth Suryanarayana Date: Mon, 25 Jul 2016 15:24:15 -0700 Subject: [PATCH] Make StateMachine and ShowCommand tasks mutually exclusive 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 --- src/control-node/control_node.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/control-node/control_node.cc b/src/control-node/control_node.cc index f23552d2c40..c4eafcfd438 100644 --- a/src/control-node/control_node.cc +++ b/src/control-node/control_node.cc @@ -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(