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

Protect write operations with a muxtex #18

Merged
merged 1 commit into from Aug 3, 2016
Merged

Conversation

wallyworld
Copy link
Member

@wallyworld wallyworld commented Aug 3, 2016

https://bugs.launchpad.net/juju-core/+bug/1609041

Juju CI tests were showing a race. I couldn't reproduce locally, but what appears to be happening is that:

  1. getWriters() which is protected by a mutex gives the writers
  2. however, there's nothing preventing concurrent writes to each writer

So I added a new mutex to protect the write() api itself.

(Review request: http://reviews.vapour.ws/r/5358/)

@wallyworld
Copy link
Member Author

$$merge$$

@jujubot
Copy link
Contributor

jujubot commented Aug 3, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju-loggo

@jujubot jujubot merged commit 58055bd into juju:master Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants