We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
see conn_pool.go see connectionPool see connectionPool --> connCount see func (cp *connectionPool) connCloser()
func (cp *connectionPool) connCloser()
You are using connCloser() as a go routine. Inside connCloser there is the assignment connCount = cp.connCount
connCloser()
connCount = cp.connCount
Please consider using connCount = atomic.LoadUint64(&cp.connCount) instead, as the current solution might lead to race conditions.
connCount = atomic.LoadUint64(&cp.connCount)
I am not using/invested in couchbase, so please forgive the bad report style.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
see conn_pool.go
see connectionPool
see connectionPool --> connCount
see
func (cp *connectionPool) connCloser()
You are using
connCloser()
as a go routine.Inside connCloser there is the assignment
connCount = cp.connCount
Please consider using
connCount = atomic.LoadUint64(&cp.connCount)
instead, as the current solution might lead to race conditions.
I am not using/invested in couchbase, so please forgive the bad report style.
The text was updated successfully, but these errors were encountered: