summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.h
diff options
context:
space:
mode:
authorRahul Sundararaman <rahul.sundararaman@mongodb.com>2019-12-09 18:32:45 +0000
committerevergreen <evergreen@mongodb.com>2019-12-09 18:32:45 +0000
commit4f00d6e3d7e54a2d131b8216d4b4ef9bfd7a7c6b (patch)
tree97b83f3c954bd475f8eb5d94f592eca57a5018f7 /src/mongo/client/connpool.h
parent1f32f6c3952581833482a1c3b0b7ab913b60943f (diff)
downloadmongo-4f00d6e3d7e54a2d131b8216d4b4ef9bfd7a7c6b.tar.gz
SERVER-44155 Validate a subset of latches of all levels
Diffstat (limited to 'src/mongo/client/connpool.h')
-rw-r--r--src/mongo/client/connpool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/client/connpool.h b/src/mongo/client/connpool.h
index 1d39268d588..064ec7c5b5f 100644
--- a/src/mongo/client/connpool.h
+++ b/src/mongo/client/connpool.h
@@ -38,6 +38,7 @@
#include "mongo/stdx/condition_variable.h"
#include "mongo/util/background.h"
#include "mongo/util/concurrency/mutex.h"
+#include "mongo/util/hierarchical_acquisition.h"
#include "mongo/util/time_support.h"
namespace mongo {
@@ -393,7 +394,8 @@ private:
typedef std::map<PoolKey, PoolForHost, poolKeyCompare> PoolMap; // servername -> pool
- mutable Mutex _mutex = MONGO_MAKE_LATCH("DBConnectionPool::_mutex");
+ mutable Mutex _mutex =
+ MONGO_MAKE_LATCH(HierarchicalAcquisitionLevel(0), "DBConnectionPool::_mutex");
std::string _name;
// The maximum number of connections we'll save in the pool per-host