-
Notifications
You must be signed in to change notification settings - Fork 596
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
Possible datarace at cacheShard.get #127
Comments
I took a look into this code since bigCache returns a not nil but empty slice which is not expected to be returned. |
For reasons not to use |
Thanks for the explanation =)
|
Good idea @ehnuje |
I'm happy to take a look at any PRs you come up with @ehnuje :) |
After check the latest code, it has been fixed by e24eb22 |
Is there any possibility of datarace call
RUnlock
before return by calling readEntry at the end of the function? How about calls.lock.RUnlock()
bydefer s.lock.RUnlock()
to ensure lock is held until data copying is done?The text was updated successfully, but these errors were encountered: