summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool.cpp
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/executor/connection_pool.cpp
parent1f32f6c3952581833482a1c3b0b7ab913b60943f (diff)
downloadmongo-4f00d6e3d7e54a2d131b8216d4b4ef9bfd7a7c6b.tar.gz
SERVER-44155 Validate a subset of latches of all levels
Diffstat (limited to 'src/mongo/executor/connection_pool.cpp')
-rw-r--r--src/mongo/executor/connection_pool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/executor/connection_pool.cpp b/src/mongo/executor/connection_pool.cpp
index a0a4c9f0a7c..42ff763018f 100644
--- a/src/mongo/executor/connection_pool.cpp
+++ b/src/mongo/executor/connection_pool.cpp
@@ -43,6 +43,7 @@
#include "mongo/executor/remote_command_request.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/destructor_guard.h"
+#include "mongo/util/hierarchical_acquisition.h"
#include "mongo/util/log.h"
#include "mongo/util/lru_cache.h"
#include "mongo/util/scopeguard.h"
@@ -189,7 +190,7 @@ protected:
size_t target = 0;
};
- Mutex _mutex = MONGO_MAKE_LATCH("LimitController::_mutex");
+ Mutex _mutex = MONGO_MAKE_LATCH(HierarchicalAcquisitionLevel(0), "LimitController::_mutex");
stdx::unordered_map<PoolId, PoolData> _poolData;
};