-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
atlas: fix race condition for QueryIndex (#1148)
Updates can happen concurrently with reads. This can result in some of the volatile variables being set to `null` after the `null` check occurs. Now they will get copied to a local reference before being used for reads.
- Loading branch information
1 parent
0fe1beb
commit b050f12
Showing
2 changed files
with
110 additions
and
40 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