Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix concurrency issue in updating DBEntry flags
Fixes bug: #1375226 Cause: DBEntry flag is updated from two mutually non-exclusive task. This results in corrupting the flags and unexpected free/delete on entry. The problem is caused while setting "OnRemoveQ" flag on DBEntry as it can be done from any task context. Fix: Move OnRemoveQ out of DBEntry flags and make it as atomic bool variable. Add assert to catch the case where route gets deleted with active paths Add assert to catch the case where path is inserted to a deleted route Added new test for repeated route update(from a agent with different nexthop) which discovered this bug. Change-Id: I5df04f89f00959799a921e9db37388c0eb56334e
- Loading branch information
Showing
3 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters