Skip to content

Commit 6906525

Browse files
committed
remove unexpected error log
1 parent 20f971b commit 6906525

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ClientConnection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ const std::future<void>& ClientConnection::close(Result result, bool switchClust
12791279
cancelTimer(*connectTimer_);
12801280
lock.unlock();
12811281
int refCount = weak_from_this().use_count();
1282-
if (!isResultRetryable(result)) {
1282+
if (result != ResultAlreadyClosed /* closed by the pool */ && !isResultRetryable(result)) {
12831283
LOG_ERROR(cnxString() << "Connection closed with " << result << " (refCnt: " << refCount << ")");
12841284
} else {
12851285
LOG_INFO(cnxString() << "Connection disconnected (refCnt: " << refCount << ")");

0 commit comments

Comments
 (0)