-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent inconsistencies between concurrent hash table and policy
data structures caused by timing issues - Replace the boolean `is_dirty` with two atomic u16 counters `entry_gen` and `policy_gen` to track the number of times an cached entry has been updated and the number of times its write log has been applied to the policy data structures. - Update an internal `handle_upsert` method to check the `entry_gen` counter when removing an entry from the hash table.
- Loading branch information
1 parent
3c4e920
commit 5670fef
Showing
4 changed files
with
134 additions
and
63 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
Oops, something went wrong.