diff options
author | Rahul Sundararaman <rahul.sundararaman@mongodb.com> | 2019-12-09 18:32:45 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-09 18:32:45 +0000 |
commit | 4f00d6e3d7e54a2d131b8216d4b4ef9bfd7a7c6b (patch) | |
tree | 97b83f3c954bd475f8eb5d94f592eca57a5018f7 /src/mongo/s/client/shard_connection.cpp | |
parent | 1f32f6c3952581833482a1c3b0b7ab913b60943f (diff) | |
download | mongo-4f00d6e3d7e54a2d131b8216d4b4ef9bfd7a7c6b.tar.gz |
SERVER-44155 Validate a subset of latches of all levels
Diffstat (limited to 'src/mongo/s/client/shard_connection.cpp')
-rw-r--r-- | src/mongo/s/client/shard_connection.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/client/shard_connection.cpp b/src/mongo/s/client/shard_connection.cpp index 1e56594331d..b78e4aefeeb 100644 --- a/src/mongo/s/client/shard_connection.cpp +++ b/src/mongo/s/client/shard_connection.cpp @@ -48,6 +48,7 @@ #include "mongo/s/transaction_router.h" #include "mongo/util/concurrency/spin_lock.h" #include "mongo/util/exit.h" +#include "mongo/util/hierarchical_acquisition.h" #include "mongo/util/log.h" #include "mongo/util/stacktrace.h" @@ -75,7 +76,8 @@ public: void appendInfo(BSONObjBuilder* b) const; private: - mutable Mutex _mutex = MONGO_MAKE_LATCH("ActiveClientConnections::_mutex"); + mutable Mutex _mutex = + MONGO_MAKE_LATCH(HierarchicalAcquisitionLevel(0), "ActiveClientConnections::_mutex"); std::set<const ClientConnections*> _clientConnections; } activeClientConnections; |