We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
entityMetadataMap is a global map accessed from numerous files across the project. It should be protected from concurrent access.
Adding a RWMutex to RegisterEntityMetadata and GetEntityMetadata should be sufficient.
RegisterEntityMetadata
GetEntityMetadata
This causes a race issue when running go test -race on the /0chain/code/go/0chain.net/sharder/blockstore/ directory.
go test -race
/0chain/code/go/0chain.net/sharder/blockstore/
The text was updated successfully, but these errors were encountered:
Protect entityMetadataMap from concurrent access #197
525f6e9
74e457f
- code clean & decompose
f0d0643
- revert go.mod & go.sum
Protect entityMetadataMap from concurrent access #197 (#214)
3c1da95
platsko
Successfully merging a pull request may close this issue.
entityMetadataMap is a global map accessed from numerous files across the project. It should be protected from concurrent access.
Adding a RWMutex to
RegisterEntityMetadata
andGetEntityMetadata
should be sufficient.This causes a race issue when running
go test -race
on the/0chain/code/go/0chain.net/sharder/blockstore/
directory.The text was updated successfully, but these errors were encountered: