-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in iteration logic that may return null handle
Summary: Reported by user: https://fb.workplace.com/groups/cachelibusers/posts/2528004787386648 A couple of months ago we changed our eviction synchronization logic significantly. The outcome is that on lookup, we can return a miss if an item is concurrently marked as for eviction. We have missed updating the iteration logic to take this into account. This diff fixes that and only returns valid handles. Reviewed By: SLieve Differential Revision: D58193077 fbshipit-source-id: 83331a700ca7aeb8006401375219892a139faf13
- Loading branch information
1 parent
ec2e1bd
commit fc316d5
Showing
3 changed files
with
74 additions
and
1 deletion.
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