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

agent/agent.go endpointsLock never uses the RLock/RUnlock #3376

Closed
tqh opened this issue Aug 9, 2017 · 2 comments
Closed

agent/agent.go endpointsLock never uses the RLock/RUnlock #3376

tqh opened this issue Aug 9, 2017 · 2 comments

Comments

@tqh
Copy link

tqh commented Aug 9, 2017

Should this be a RLock()/RUnlock instead?

a.endpointsLock.Lock()

@sean-
Copy link
Contributor

sean- commented Aug 9, 2017

Yes.

CC @magiconair

slackpad added a commit that referenced this issue Aug 10, 2017
This prevents RPC calls from getting serialized in this spot.

Fixes #3376
@slackpad
Copy link
Contributor

@tqh great catch - thanks!

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

No branches or pull requests

3 participants