-
Notifications
You must be signed in to change notification settings - Fork 59
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
Remove locks for tablets flag on Conn #196
Remove locks for tablets flag on Conn #196
Conversation
45e3c09
to
6eb181d
Compare
@dkropachev can you please add the description also to the commit message? |
Done |
6eb181d
to
358800f
Compare
policies.go
Outdated
@@ -651,7 +651,6 @@ func (t *tokenAwareHostPolicy) Pick(qry ExecutableQuery) NextHost { | |||
var replicas []*HostInfo | |||
|
|||
if qry.GetSession() != nil && qry.GetSession().tabletsRoutingV1 { | |||
t.tablets.mu.Lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this is here, the commit message is about removing Conn.mu locking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was wierd merge issue, it is gone after rebase
pls rebase on master |
358800f
to
a08be15
Compare
Removes unnecessary `Conn.mu` locking on accessing `tabletsRoutingV1` flag. `Conn.mu` is overused, less it is used less contention is yielded along with more performance.
a08be15
to
7dba59c
Compare
done |
Removes unnecessary
Conn.mu
locking on accessingtabletsRoutingV1
flag.Conn.mu
is overused, less it is used less contention is yielded along with more performance.