diff options
author | Ben Shteinfeld <ben.shteinfeld@mongodb.com> | 2017-06-06 10:26:14 -0400 |
---|---|---|
committer | Ben Shteinfeld <ben.shteinfeld@mongodb.com> | 2017-06-07 15:18:27 -0400 |
commit | 9477495e07365cf10de4e935603e1fb9cc01fea6 (patch) | |
tree | 94ba8e5002fbe1066da65fa9631ac511c408a88e /src/mongo/client/connection_pool.cpp | |
parent | 137354a530f24487a89166ef13c3fc2bdf2535df (diff) | |
download | mongo-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.cpp | 4 |
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) {} |