Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/ConnectionPool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ Future<Error, ClientConnectionWeakPtr> ConnectionPool::getConnectionAsync(const

if (!cnx->isClosed()) {
// Found a valid or pending connection in the pool
LOG_DEBUG("Got connection from pool for " << key << " use_count: " //
<< (cnx.use_count()) << " @ " << cnx.get());
LOG_DEBUG("Got connection from pool for " << key << " use_count: " << (cnx.use_count()));
return cnx->getConnectFuture();
} else {
// The closed connection should have been removed from the pool in ClientConnection::close
LOG_WARN("Deleting stale connection from pool for " << key << " use_count: " << (cnx.use_count())
<< " @ " << cnx.get());
LOG_WARN("Deleting stale connection from pool for " << key
<< " use_count: " << (cnx.use_count()));
pool_.erase(key);
}
}
Expand Down