summaryrefslogtreecommitdiff
path: root/src/mongo/client/connection_pool.cpp
diff options
context:
space:
mode:
authorBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-06-06 10:26:14 -0400
committerBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-06-07 15:18:27 -0400
commit9477495e07365cf10de4e935603e1fb9cc01fea6 (patch)
tree94ba8e5002fbe1066da65fa9631ac511c408a88e /src/mongo/client/connection_pool.cpp
parent137354a530f24487a89166ef13c3fc2bdf2535df (diff)
downloadmongo-9477495e07365cf10de4e935603e1fb9cc01fea6.tar.gz
SERVER-28795 dbclient ConnectionPool initializes _lastCleanUpTime
Diffstat (limited to 'src/mongo/client/connection_pool.cpp')
-rw-r--r--src/mongo/client/connection_pool.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/client/connection_pool.cpp b/src/mongo/client/connection_pool.cpp
index c53f1d5a272..1bfa311b62b 100644
--- a/src/mongo/client/connection_pool.cpp
+++ b/src/mongo/client/connection_pool.cpp
@@ -53,7 +53,9 @@ const Minutes kMaxConnectionAge(30);
ConnectionPool::ConnectionPool(int messagingPortTags,
std::unique_ptr<executor::NetworkConnectionHook> hook)
- : _messagingPortTags(messagingPortTags), _hook(std::move(hook)) {}
+ : _messagingPortTags(messagingPortTags),
+ _lastCleanUpTime(Date_t::now()),
+ _hook(std::move(hook)) {}
ConnectionPool::ConnectionPool(int messagingPortTags)
: ConnectionPool(messagingPortTags, nullptr) {}