-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix a race in tipset cache usage #4282
Conversation
logs
|
2860055
to
24dd6da
Compare
@@ -95,14 +104,18 @@ func (tsc *tipSetCache) getNonNull(height abi.ChainEpoch) (*types.TipSet, error) | |||
} | |||
|
|||
func (tsc *tipSetCache) get(height abi.ChainEpoch) (*types.TipSet, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit nasty but I'm trying to avoid calling into the storage subsystem while holding a lock.
24dd6da
to
f925f0f
Compare
This tipset cache is shared between multiple services and is called from multiple places.
f925f0f
to
f32b3bf
Compare
This tipset cache is shared between multiple services and is called from multiple places.