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

Serialize concurrent access to data in the auction tracker. #331

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

derbear
Copy link
Contributor

@derbear derbear commented Sep 13, 2019

This fixes data races when calling auction tracker methods concurrently.

This does not enforce the immutability of Auctions and AuctionKey. Thus, a better design for the Tracker may be not to expose Auctions and AuctionKey as modifiable by external code.

@derbear derbear added the bug Something isn't working label Sep 13, 2019
@derbear derbear requested review from zeldovich and rotemh September 13, 2019 18:38
@derbear
Copy link
Contributor Author

derbear commented Sep 13, 2019

(This issue was caught by the race detector on Travis: https://travis-ci.com/algorand/go-algorand/jobs/227763780)

@derbear derbear merged commit e699009 into algorand:master Sep 18, 2019
@derbear derbear deleted the concurrent-auction-tracker branch September 18, 2019 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants