diff options
-rw-r--r-- | src/mongo/executor/connection_pool.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/executor/connection_pool.cpp b/src/mongo/executor/connection_pool.cpp index 581ec8e3194..3594215de9d 100644 --- a/src/mongo/executor/connection_pool.cpp +++ b/src/mongo/executor/connection_pool.cpp @@ -479,10 +479,6 @@ void ConnectionPool::SpecificPool::returnConnection(ConnectionInterface* connPtr updateStateInLock(); - // Users are required to call indicateSuccess() or indicateFailure() before allowing - // a connection to be returned. Otherwise, we have entered an unknown state. - invariant(conn->getStatus() != kConnectionStateUnknown); - if (conn->getGeneration() != _generation) { // If the connection is from an older generation, just return. return; |