joao-r-reis commented on code in PR #1875:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1875#discussion_r2079378807


##########
connectionpool.go:
##########
@@ -246,6 +246,9 @@ func (p *policyConnPool) getPool(host *HostInfo) (pool 
*hostConnPool, ok bool) {
 func (p *policyConnPool) getPoolByHostID(hostID string) (pool *hostConnPool, 
ok bool) {
        p.mu.RLock()
        pool, ok = p.hostConnPools[hostID]
+       if ok {
+               p.hostConnPools[hostID] = nil

Review Comment:
   What's the goal here? In my mind this will make it so that only one query 
will ever run on a specific pool no?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to