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

[#close 242] Threadsafe cache loader #603

Merged
merged 1 commit into from May 21, 2019

Conversation

schneems
Copy link
Member

I'm honestly still not sure how to trigger this error, however the root cause looks like two threads trying to mutate the same values from the cache.

rails/rails#24627

The issue should be mitigated by copying the set to a local copy via dup and then mutating that.

To accomplish this, two helper methods have been added.

I'm honestly still not sure how to trigger this error, however the root cause looks like two threads trying to mutate the same values from the cache.

rails/rails#24627

The issue should be mitigated by copying the set to a local copy via `dup` and then mutating that. 

To accomplish this, two helper methods have been added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant