Open burner-account opened 5 years ago
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.
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 assignmentconnCount = 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.