Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
worker/peergrouper: fix data race #4836
Conversation
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
added a commit
that referenced
this pull request
Mar 22, 2016
jujubot
merged commit a4e4ce3
into
juju:master
Mar 22, 2016
davecheney
deleted the
davecheney:fixedbugs/1560237
branch
Mar 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
davecheney commentedMar 22, 2016
Fixes LP 1560237
newWorker returns a reference to a *pgWorker value, but also passes that
reference to a goroutine which makes it unsafe to modify the contents of
the worker.
Work around this by explicitly passing the value of
providerSupportsSpaces into newWorker.
(Review request: http://reviews.vapour.ws/r/4277/)