-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve TOC item IDs when cloning memory metadata reader.
As the IDs are used for computing cache keys, it's important that they do not change. Prior to this change, background fetching would clone the reader and populate the cache with entries using possibly incorrect keys. This patch changes the clone behavior to copy over the original ID mappings. Note that I also removed the locks around the ID maps as these maps are never updated after the reader is created. Fixes #842
- Loading branch information
1 parent
e86ba34
commit b061f47
Showing
2 changed files
with
117 additions
and
61 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