Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin the newly cached blob after insert #10625

Closed
wants to merge 5 commits into from

Conversation

ltamasi
Copy link
Contributor

@ltamasi ltamasi commented Sep 1, 2022

Summary:
With the current code, when a blob isn't found in the cache and gets read
from the blob file and then inserted into the cache, the application gets
passed the self-contained PinnableSlice resulting from the blob file read.
The patch changes this so that the PinnableSlice pins the cache entry
instead in this case.

Test Plan:
make check

@facebook-github-bot
Copy link
Contributor

@ltamasi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@pdillinger pdillinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ltamasi
Copy link
Contributor Author

ltamasi commented Sep 1, 2022

Thanks for the review @pdillinger !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants